Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom-Axis for timeline chart
#1
var comp = sdk.getWidget('timeline1');
//left
comp.m_customaxis.enable = true;
comp.m_customaxis.axis.left.data.min = 400;
comp.m_customaxis.axis.left.data.max = 1600;
comp.m_customaxis.axis.left.data.noOfMarkers = 9;
comp.m_customaxis.axis.left.data.step = 400;

//right
comp.m_customaxis.enable = true;
comp.m_customaxis.axis.right.data.min = 200;
comp.m_customaxis.axis.right.data.max = 1600;
comp.m_customaxis.axis.right.data.noOfMarkers = 9;
comp.m_customaxis.axis.right.data.step = 200;

By setting values as below,
enableCustomAxis= true;
minPoint-> the axis starts from min point
maxPoint-> the axis ends at max point
noOfMarkers-> noofmarkers to be drawn in axis
step-> step is interval or difference between two markers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)