Home forums Feature Requests & Feedback Can we create XAxis in different color?

This topic contains 4 replies, has 2 voices, and was last updated by  Priyanka M S 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #20746

    mhdajmalik
    Member

    I want to show X axis in different color, is there any solution for that or any alternatives?

    AxisX’s linecolor should be different based on x value

    x ==> 10 – 30 linecolor is red
    30 – 80 linecolor is green

    check x axis of image from value 3:43 to 14:23

    check Image: https://stackoverflow.com/questions/30707872/nvd3-cumulative-line-chart-how-to-set-different-back-ground-color-for-specific

    NB: i want to sepparate X axis so I can’t use striplines also

    • This topic was modified 4 months ago by  mhdajmalik.
    • This topic was modified 4 months ago by  mhdajmalik.
    • This topic was modified 4 months ago by  mhdajmalik.
    • This topic was modified 4 months ago by  mhdajmalik.
    #20759

    Priyanka M S
    Member

    @mhdajmalik

    Sorry, this feature is not available as of now.

    __
    Priyanka M S
    Team CanvasJS

    #20768

    mhdajmalik
    Member

    Is there any alternatives? can I access the X-axis datapoint position from outside chart?

    #20769

    mhdajmalik
    Member

    Can I apply labelFontColor from datapoint instead of axisX

    #20770

    Priyanka M S
    Member

    @mhdajmalik,

    Is there any alternatives? can I access the X-axis datapoint position from outside chart?

    You can get the position of dataPoint by using convertValueToPixel() method.

    Can I apply labelFontColor from datapoint instead of axisX

    Labels are properties of axis, labelFontColor can only be used inside axis. However you can have indexLabel for every dataPoint and customize it’s color using indexLabelFontColor.

    __
    Priyanka M S
    Team CanvasJS

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

You must be logged in to reply to this topic.