【问题标题】:Corechart instead of LineChartCorechart 而不是 LineChart
【发布时间】:2017-11-18 11:14:30
【问题描述】:

我正在将 Google 可视化图表与来自 Google 工作表文档的数据一起使用。

它运作良好。但是我想将 LineChart 更改为 Chart Area,我得到一个错误:无效的可视化类型:corechart。我用其他示例进行了尝试,但 corechart 似乎与数据包装器不兼容。

我试过这个:https://jsfiddle.net/pvcb8gnw/

    ChartWrapper({ <- Replaced by ChartArea doesn't work
    chartType: 'LineChart',  <- Replaced by Corechart give the error
    chartType: 'LineChart',  <- Replaced by Areachart give the error

我正在尝试这样做:https://developers.google.com/chart/interactive/docs/gallery/areachart

【问题讨论】:

    标签: javascript charts google-visualization


    【解决方案1】:

    替换...

    chartType: 'LineChart'
    

    与...

    chartType: 'AreaChart'
    

    【讨论】:

    • 我也一样:无效的可视化类型:areachart
    • AreaChart 不是 ChartArea @user1708580,是吗?
    猜你喜欢
    • 2017-07-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-07
    • 1970-01-01
    • 1970-01-01
    • 2013-10-05
    • 2017-06-16
    相关资源
    最近更新 更多