A bar chart or bar graph is a chart with rectangular bars with lengths proportional to the values that they represent.
A bar chart or bar graph is a chart with rectangular bars with lengths proportional to the values that they represent.
Source Code
var bar1 = new Rickshaw.Graph({
element: document.querySelector('#chartBar1'),
renderer: 'bar',
max: 80,
series: [{
data: [
{ x: 0, y: 40 },
{ x: 1, y: 49 },
{ x: 2, y: 38 },
{ x: 3, y: 30 },
{ x: 4, y: 32 }
],
color: '#26A2E2'
}]
});
bar1.render();
A stacked bar chart, also known as a stacked bar graph, is a graph that is used to break down and compare parts of a whole.
A stacked bar chart, also known as a stacked bar graph, is a graph that is used to break down and compare parts of a whole.
Source Code
series: [{
data: [
{ x: 0, y: 20 },
{ x: 1, y: 30 },
{ x: 2, y: 10 },
{ x: 3, y: 15 },
{ x: 4, y: 10 }
],
color: '#466C79'
},
{
data: [
{ x: 0, y: 10 },
{ x: 1, y: 10 },
{ x: 2, y: 15 },
{ x: 3, y: 20 },
{ x: 4, y: 12 }
],
color: '#26A2E2'
}
A bar chart or bar graph is a chart with rectangular bars with lengths proportional to the values that they represent.
A bar chart or bar graph is a chart with rectangular bars with lengths proportional to the values that they represent.
Additional Option Code
stack: false
A line chart or line graph is a type of chart which displays information as a series of data points called markers.
A line chart or line graph is a type of chart which displays information as a series of data points called markers.
Option Code
rendered: 'line'
An area chart or area graph displays graphically quantitative data. It is based on the line chart.
An area chart or area graph displays graphically quantitative data. It is based on the line chart.
Option Code
renderer: 'area'