📊 Mono Bar Chart w/ Color Pattern
If a mono bar chart's .mono
method is true
, it will use color patterns instead of mono color.
🔑 Sample Code
jelly.bar()
.container('#jelly-container')
.data([
{category:'Blue', name: 'A', value: 10},
{category:'Blue', name: 'B', value: 20},
{category:'Blue', name: 'C', value: 30},
{category:'Blue', name: 'D', value: 40},
{category:'Red', name: 'A', value: 20},
{category:'Red', name: 'B', value: 10},
{category:'Red', name: 'C', value: 40},
{category:'Red', name: 'D', value: 10}
])
.dimensions(['name'])
.measures([{field: 'value', op: 'sum'}])
.mono(false)
.axis('x').axis('y')
.render();