Forums
Custom-Axis for timeline chart - Printable Version

+- Forums (https://bdn.bdb.ai)
+-- Forum: BDB Knowledge Base (https://bdn.bdb.ai/forumdisplay.php?fid=13)
+--- Forum: BDB Dashboards Designer (https://bdn.bdb.ai/forumdisplay.php?fid=43)
+---- Forum: BDB - Designer (https://bdn.bdb.ai/forumdisplay.php?fid=29)
+---- Thread: Custom-Axis for timeline chart (/showthread.php?tid=407)



Custom-Axis for timeline chart - ArghaPratim - 12-23-2022

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.