Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
-
或者说为什么日期 + 指标 不会推荐柱状图呢?这是出于什么考虑呀? |
Beta Was this translation helpful? Give feedback.
-
引用一段回答:“Bar graphs show data with blocks of different lengths, whereas line graphs show a series of points connected by straight lines. This leads to a very different appearance, but the biggest difference is that bar graphs are more versatile while line graphs are better for showing trends over time or another measure with a logical progression of values (such as distance from a given point). Bar graphs can also show frequency distributions (how often you observe different outcomes) much more effectively than line graphs.” |
Beta Was this translation helpful? Give feedback.
-
首先当我使用的默认的推荐数据为:
const defaultData = [
{ price: 100, type: '2023-05-30' },
{ price: 120, type: '2023-05-21' },
{ price: 150, type: 'C' },
]
上述的数据推荐出来的图表包括了柱状图
但是当我把数据修改为:
const defaultData = [
{ price: 100, type: '2023-05-30' },
{ price: 120, type: '2023-05-21' },
{ price: 150, type: '2023-05-09' },
]
此时推荐出来的图表之中仅有:
使用上完全保持一致:
import { Advisor } from '@antv/ava'
const chartAdvisor = new Advisor()
const results = chartAdvisor?.advise({ data: defaultData })
console.log(results)
请问这kennel是因为什么呢?没有提供额外的多余的配置。
Beta Was this translation helpful? Give feedback.
All reactions