cn9ne
July 5, 2020, 4:49am
1
Hi All -
Is it possible to assign specific color when certain condition is met?
Below is what I did - Nivochart and UDchart, I was able to figure out with UDchart - if duration greater that 60 minutes, bar color is set to red and anything less than is blue.
cn9ne
July 5, 2020, 7:14am
2
@adam - Any idea?
I do not find anything related in the documentation. The closest option i could see is UseDataColor - any idea how to use this?
adam
July 6, 2020, 1:23pm
3
Let me play around and then update the docs on colors. I feel like the nivo colors are weird and I have a hard time getting them working myself.
cn9ne
July 7, 2020, 1:38am
4
Thanks @adam .
Nivo chart is neat, and has a broad range of features but I like ChartJS on its flexibility.
Anyway, do you know how to convert the JS code in UDChart options? Is it possible? What I would like to do is show value ontop of bar.
Hi All -
I found a thread in stackoverflow discussing this. From what I can see, they set an option - namely animation. However, I have no idea how to translate it into UD/PS. Initially, I was using NivoChart, but I cant figure out how to assign specific color if a condition is met. Your help is much appreciated.
https://jsfiddle.net/x75ehyco/1/
scales: {
yAxes: [{
ticks: {
beginAtZero: true,
}
}]
},
animation: {
duration: 1,
…
There is also plugins available, not sure how to load it to UD though.