Hi,
In Horizontal Bar chart. How to make each bar with different color?
Thanks,
Nithya
Hi,
In Horizontal Bar chart. How to make each bar with different color?
Thanks,
Nithya
var trace0 = {
type: 'bar',
x: [1, 2, 1],
y: [1, 2, 3],
orientation: 'h',
marker: { color: ['red', 'green', 'blue'] }
};
Plotly.plot('graph', [trace0]);
gives:
Thanks This works for me.
Is it possible to do this on the web version, too?
How i can show value in end of bar or inside bar with out hover?