Search the Community
Showing results for tags 'section'.
-
Chart section is not showing correct color shading
niravbhatt posted a question in General Questions
Hi, I am a JChartFX licence user. I am plotting chart with color section. I am not getting correct color section as per my provided color code sectionWarning = new cfx.AxisSection(); sectionWarning.setFrom(currAlertCriticalNo); Chart1.getAxisY().getSections().add(sectionWarning); sectionWarning.setBackColor("#ffdb99"); sectionWarning.getGrids().getMajor().setVisible(false); sectionWarning.getGrids().getMinor().setVisible(false); sectionWarning.getGrids().getMinor().setTickMark(cfx.TickMark.None); sectionWarning.getGrids().getMajor().setTickMark(cfx.TickMark.None); sectionWarning.setTextColor("#ffdb99"); sectionWarning.setText(ruleBuilderWarningList[warningIndex].alertName + $("#widgetAlertWarning").text()); var customWarning; customWarning = new cfx.CustomGridLine(); customWarning.setValue(ruleBuilderWarningList[warningIndex].alertWarningNo); customWarning.setText(ruleBuilderWarningList[warningIndex].alertName + $("#widgetAlertWarning").text()); Chart1.getAxisY().getCustomGridLines().add(customWarning);