jQuery UI Widgets Forums Chart xAxis label color for 2 charts

This topic contains 3 replies, has 3 voices, and was last updated by  Peter Stoev 9 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • xAxis label color for 2 charts #66534

    arkgroup
    Participant

    I have 2 charts and I want to change label color just for one chart.
    If use
    <style type=”text/css”>
    .jqx-chart-label-text, .jqx-chart-axis-text
    {
    fill: #ffffff;
    color: #ffffff;
    }
    </style>
    labels on both charts become white. How can I change just one chart?

    Thanks

    xAxis label color for 2 charts #66559

    Dimitar
    Participant

    Hello arkgroup,

    Here is how to achieve this (assuming the id of your first chart is chartOne):

    <style type="text/css">
        #chartOne .jqx-chart-label-text,
        #chartOne .jqx-chart-axis-text {
            fill: #ffffff;
            color: #ffffff;
        }
    </style>

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    xAxis label color for 2 charts #66614

    arkgroup
    Participant

    Dimitar,

    Thanks a lot for your help.

    Regards,

    arkgroup

    xAxis label color for 2 charts #66643

    Peter Stoev
    Keymaster

    Hi guys,

    To customize xAxis colors, you can also use:

    xAxis: {
       title: { 'class': myAxisTitleClass },
       labels: {'class': myAxisLabelsClass },
       line: {color: '#FF0000' },
       gridLines: {color: '#FF0000' },
       tickMarks: {color: '#FF0000' },
    }

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.