Home forums Using CanvasJS How to define your own color set for a ReactJS canvas component?

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23819

    ttchuah
    Member

    I am using the ReactJS canvasJS components.

    How do I define a custom color set?

    This link shows me how to do it in vanilla JS, but I’m looking for a ReactJS method.

    colorSet

    Thanks.

    #23826

    Vishwas R
    Keymaster

    @ttchuah,

    Defining custom color-set array using addColorSet method works fine in Vanilla JS, React, Angular, etc. Please take a look at this sample project.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.