12-23-2022, 05:07 AM
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.
//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.