PRIMARY and SECONDARY are contant ids that are identical in every chart;
however, the left scale is optional and might not always exist
constrightScale = controller.getObject({ objType:'scale', id:BG.charts.Chart.EScale.PRIMARY }, chart); // NEVER null constleftScale = controller.getObject({ objType:'scale', id:BG.charts.Chart.EScale.SECONDARY }, chart); // could be null
Additional "invisible" scales have dynamically generated ids starting at SCREEN.
This means that you even if there are 3 scales in a chart, the id SCREEN
might not actually be in use. Instead you can use it to check if a given scale
id is for an "invisible" scale
constants for easier access to chart scales
PRIMARY
andSECONDARY
are contant ids that are identical in every chart; however, the left scale is optional and might not always existAdditional "invisible" scales have dynamically generated ids starting at
SCREEN
. This means that you even if there are 3 scales in a chart, the idSCREEN
might not actually be in use. Instead you can use it to check if a given scale id is for an "invisible" scale