• Resolved ericc44

    (@ericc44)


    HI,
    I use piepercent but I do not want to display the data with 0%. Is it possible to have parameter to disable display value to 0% ?
    Screenshot at https://prnt.sc/fuuegz

    Another question, is it possible to have more than 15 colors, because after 15 all are black color.
    Screenshot at https://prnt.sc/fuukad

    Thanks
    Eric

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author silsha

    (@silsha)

    Hi Eric,

    you are right, there are only 15 colours defined by chartist.js
    You can set additional colours by adding this snippet in your custom CSS:

    
    .ct-series-p .ct-slice-pie {
        fill: #a748ca;
    }
    

    The p in ct-series-p is the index for the 16th colour – just follow the alphabet to add more. (next one would be ct-series-q, ct-series-r, …

    As for the 0% values: there is currently no way to hide them. I just opened an issue and might look into it soon.

    • This reply was modified 7 years, 4 months ago by silsha.
    Thread Starter ericc44

    (@ericc44)

    Thank you very much Silsha.
    It is ok for color and can you tell me when you have a solution for option to hide labels for values below x.

    Best regards
    Eric

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable diplay for 0% values’ is closed to new replies.