小编quo*_*ous的帖子

从Zingchart中的CSV数据中获取序列和值

图表应该如下所示.在Zingchart中创建混合图表时,我们可以使用values数组传递类型属性值.但我不确定何时从CSV读取数据如何实现.我想创建混合图表,如下面的小提琴链接,但数据将从csv文件中读取.

  var myConfig = 
      {
      "type":"mixed",
      "series":[
        {
          "values":[51,53,47,60,48,52,75,52,55,47,60,48],
          "type":"bar",
          "hover-state":{
            "visible":0
          }
        },
        {
          "values":[69,68,54,48,70,74,98,70,72,68,49,69],
          "type":"line"
        }
      ]
    }
  zingchart.render({ 
	id : 'myChart', 
	data : myConfig, 
	height: 500, 
	width: 725 
});
Run Code Online (Sandbox Code Playgroud)
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
<div id="myChart"></div>
Run Code Online (Sandbox Code Playgroud)

charts linechart bar-chart zingchart

4
推荐指数
1
解决办法
619
查看次数

与ZingChart堆积的图表

我正在使用ZingChart库制作堆积条形图.这里有一个示例 http://jsfiddle.net/api/post/library/pure/ 但是假设我需要一个限制,例如颜色只有在超过15k时才会改变.那可能吗?

var myConfig = 
        {
            "type": "bar",
            "stacked": true,
            "stack-type": "normal",
            "background-color": "#FFFFFF",
            "title": {
                "text": "Mobile OS Sales  - ",
                "font-family": "arial",
                "x": "40px",
                "y": "5px",
                "align": "left",
                "bold": false,
                "font-size": "16px",
                "font-color": "#000000",
                "background-color": "none"
            },
            "subtitle": {
                "text": "<i>Since January 14, 2013</i>",
                "font-family": "arial",
                "x": "175px",
                "y": "5px",
                "align": "left",
                "bold": false,
                "font-size": "16px",
                "font-color": "#7E7E7E",
                "background-color": "none"
            },
            "plot": {
                "bar-width": "25px",
                "hover-state": {
                    "visible": false
                }
            },
            "labels":[
                {
                    "text": "11,245 Android",
                    "background-color": …
Run Code Online (Sandbox Code Playgroud)

javascript charts stacked-chart zingchart

3
推荐指数
1
解决办法
396
查看次数