Menu

Can't change axis label color

Len5inG
2013-03-20
2013-03-20
  • Len5inG

    Len5inG - 2013-03-20

    no matter if i try:

    chart.getYAxis()
    .setAxisTitleText("someTitle")
    .setLabels(new YAxisLabels()
    .setOption("color", "#000000"));

    or

    chart.getYAxis()
    .setAxisTitleText("someTitle")
    .setLabels(new YAxisLabels()
    .setColor("#000000"));

    or

    chart.getYAxis()
    .setAxisTitleText("someTitle")
    .setLabels(new YAxisLabels()
    .setStyle(new Style()
    .setColor("#000000")
    )
    );

    It is allways show with the default blue.

    THX 4 any help

     
  • Len5inG

    Len5inG - 2013-03-20

    ok, i answer this myself :/

    chart.getYAxis()
    .setAxisTitle(new AxisTitle()
    .setText(constants.dashChartAxisNameAlerts())
    .setStyle(new Style()
    .setColor("#000000")
    )
    )
    ;

    that works.
    for me it is still a little confusing when which option 'counts' at which element.

    but maybe this thread will help someone else ;)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.