如果有人可以帮助我用 fiddle 或代码笔创建一个示例(html,JS)such a graph 。 fusioncharts.com 文档中的示例对我没有多大帮助。
最佳答案
我创建了一个fiddle简化您在链接中提供的示例。代码注释中还描述了一些事情。
/** Simple steps that may help you to understand easily
1. What schema is?
2. How to provide data
**/
// 3. How to create datatable
const dataStore = new FusionCharts.DataStore();
dataSource.data = dataStore.createDataTable(data, schema);
//4. pass the dataTable in fusionTime configuration to dataSource
new FusionCharts({
type: "timeseries",
renderAt: "chart-container",
width: "100%",
height: "500",
dataSource
}).render();
要了解架构、数据、数据存储和数据表,请访问 this link .
关于javascript - 融合图 每个变量有不同的绘图类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57642874/