Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Charts Scriptcase折线图Y轴比例问题_Charts_Fusioncharts - Fatal编程技术网

Charts Scriptcase折线图Y轴比例问题

Charts Scriptcase折线图Y轴比例问题,charts,fusioncharts,Charts,Fusioncharts,有人知道如何在scriptcase中调整折线图中的y轴吗? 下图显示了问题: 我希望Scriptcase能够自动调整Y轴比例,而不是从0开始到1k结束——可能从840调整到1k。 我一直在寻找这个选择,但找不到任何答案。 谢谢 You can explicitly set y-axis min and max value using yAxisMinValue and yAxisMaxValue attribute at the chart object level for examp

有人知道如何在scriptcase中调整折线图中的y轴吗? 下图显示了问题: 我希望Scriptcase能够自动调整Y轴比例,而不是从0开始到1k结束——可能从840调整到1k。 我一直在寻找这个选择,但找不到任何答案。 谢谢

    You can explicitly set y-axis min and max value using yAxisMinValue and yAxisMaxValue attribute at the chart object level for example : 

    "chart": {
            "yAxisMinValue":"840",
            "yAxisMaxValue":"1000"
          }

    For details please check this snippet - 

 FusionCharts.ready(function() {
  var visitChart = new FusionCharts({
    type: 'line',
    renderAt: 'chart-container',
    width: '700',
    height: '400',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "yAxisMinValue":"840",
        "yAxisMaxValue":"1000"
      },
      "data": [{
          "label": "Mon",
          "value": "899"
        },
        {
          "label": "Tue",
          "value": "952"
        },
        {
          "label": "Wed",
          "value": "963"
        },
        {
          "label": "Thu",
          "value": "874"
        },
        {
          "label": "Fri",
          "value": "862"
        },
        {
          "label": "Sat",
          "value": "906"
        },
        {
          "label": "Sun",
          "value": "999"
        }
      ]
    }
  });

  visitChart.render();
});