Menu

Background Coulor option is not working for Chart XY

ART Help
2019-01-12
2019-01-14
  • Acy Forsythe

    Acy Forsythe - 2019-01-12

    Doesn't seem to have any impact. Anyone else know how to change this background color?
    Art 3.8

     

    Last edit: Acy Forsythe 2019-01-12
  • Timothy Anyona

    Timothy Anyona - 2019-01-14

    This will be fixed in the next release. In the meantime you could edit the WEB-INF\jsp\showChart.jsp file and have the line that starts with <cewolf:colorpaint color= to have
    <cewolf:colorpaint color="${chart.chartOptions.backgroundColor}"/>.
    This will not resolve the issue for pdf and png output. For that, you would need to modify the WEB-INF\classes\art\chart\Chart.java, modify the getFinalChart() method, replace
    setBackgroundPaint(Color.decode(backgroundColor));
    with
    setBackgroundPaint(Color.decode(chartOptions.getBackgroundColor()));.
    After that, save, recompile and then restart the application.

     

Log in to post a comment.