weixin_33721344 2016-04-25 17:24 采纳率: 0%
浏览 26

高图:带有JSON的图

As you could pass the following values to a Highcharts graph :

{"titulos": [{"title": "Proveedor"}, {"title": "Total"}], "data": [["Dolex - 9028382372873", 88.59], ["BIOCLEAN - 2093029302930", 2.8]]}

http://www.highcharts.com/

  • 写回答

1条回答 默认 最新

  • weixin_33734785 2016-04-27 04:12
    关注

    Let's try: http://jsfiddle.net/w02p4cru/

      $('#container').highcharts({
        "titulos": [{
          "title": "Proveedor"
        }, {
          "title": "Total"
        }],
        "data": [
          ["Dolex - 9028382372873", 88.59],
          ["BIOCLEAN - 2093029302930", 2.8]
        ]
      });
    

    Turns out that you can, but I guess that is not the desired chart that you will get, since really there won't be anything. Chart's option doesn't match required options format explained in Docs nor API.

    If you change your options to match requirements, then your chart will look like in this demo: http://jsfiddle.net/w02p4cru/1/

    Code:

      $('#container').highcharts({
        "title": {
          "text": "Proveedor"
        },
        "subtitle": {
          "text": "Total"
        },
        "series": [{
          "data": [
            ["Dolex - 9028382372873", 88.59],
            ["BIOCLEAN - 2093029302930", 2.8]
          ]
        }]
      });
    

    This might not be the chart you are looking for because you have not explained what exactly do you need, but general idea is to use required options format.

    展开全部

    评论
    编辑
    预览

    报告相同问题?

    悬赏问题

    • ¥15 PADS Logic 原理图
    • ¥15 PADS Logic 图标
    • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
    • ¥20 气象站点数据求取中~
    • ¥15 如何获取APP内弹出的网址链接
    • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
    手机看
    程序员都在用的中文IT技术交流社区

    程序员都在用的中文IT技术交流社区

    专业的中文 IT 技术社区,与千万技术人共成长

    专业的中文 IT 技术社区,与千万技术人共成长

    关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

    关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

    客服 返回
    顶部