Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/436.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
Javascript 使用两个不同的yAxis比例高图定义yAxis值_Javascript_Graphics_Highcharts_Highstock - Fatal编程技术网

Javascript 使用两个不同的yAxis比例高图定义yAxis值

Javascript 使用两个不同的yAxis比例高图定义yAxis值,javascript,graphics,highcharts,highstock,Javascript,Graphics,Highcharts,Highstock,您好,我有一张高图表,这是一张有两个不同坐标的折线图。 左边一分钟,右边一分钟。 我想“硬编码”左边是这个比例“0%,20%,40%,60%,80%,100%” 这是我的密码 var chartTot = { chart: { renderTo: 'grafTot', type: 'line', marginBottom: 110, }, legend: { itemDistance:

您好,我有一张高图表,这是一张有两个不同坐标的折线图。 左边一分钟,右边一分钟。 我想“硬编码”左边是这个比例“0%,20%,40%,60%,80%,100%”

这是我的密码

   var chartTot = {
     chart: {
         renderTo: 'grafTot',
         type: 'line',
         marginBottom: 110,

     },
     legend: {
         itemDistance: 20,
         itemWidth: 190
     },

     title: {
         text: ''
     },
     plotOptions: {
         series: {
             marker: {
                 enabled: false
             }
         }
     },
     xAxis: {
         categories: $scope.hours
     },
     yAxis: [{ //1st yAxis
             title: {
                 text: 'Clients %'
             },
             min: 0, // I want my graphic 0 to 100 but with this i get 
             max: 100, // 0- 120 because of the second axis 
             labels: {
                 format: '{value} %',
             },
         },



         { //2nd yAxis
             title: {
                 text: 'Minutes'
             },
             min: 0,
             max: 60,
             labels: {
                 format: '{value} min',
                 style: {
                     color: Highcharts.getOptions().colors[6]
                 }
             },
             opposite: true

         }
     ]
 };
我如何定义第一个yAxis刻度并保留第二个动态

非常感谢

您应该设置为false

像这样的实时演示会很好