Home forums Chart Support How to use fixed Y axis 0-100% Reply To: How to use fixed Y axis 0-100%

#30523

One more thing!!
What if i have More then 1 Line. how can i calculate 100% for Multi data (multiple objects as dataPoints).
in the blow data i have max point in 2 object and it can be in any object as it is multi line chart. how can i calculate in that scenario.

data: [              
      {
        // Change type to "doughnut", "line", "splineArea", etc.
        type: "spline",
        dataPoints: [
          { x: 10, y: 150 },
          { x: 20, y: 400 },
          { x: 30, y: 500 },
          { x: 40, y: 2000 },
          { x: 50, y: 814 },
          { x: 60, y: 68 },
          { x: 70, y: 28 },
          { x: 80, y: 34 },
          { x: 90, y: 14 }
        ]
      },
      {
        type: "spline",
        dataPoints: [
          { x: 10, y: 150 },
          { x: 20, y: 400 },
          { x: 30, y: 800 },
          { x: 40, y: 1500 },
          { x: 50, y: 814 },
          { x: 60, y: 68 },
          { x: 70, y: 3000 },
          { x: 80, y: 34 },
          { x: 90, y: 14 }
        ]
      }
    ]
  • This reply was modified 4 months ago by saqib.