7.4.9 • Published 5 months ago
gramex-multiline-chart v7.4.9
GRAMEX-Multiline-CHART
D3 multiline chart rendering for reusability purpOse.
Installation
npm install gramex-multiline-chart
Dependencies
npm install d3
Options/Config
Following options are available:
Name | Type | Description |
---|---|---|
data | data: {"quarter": "Jan","score_csi": 82,"score_cbi": 47} | Data for multiline chart |
margin | Object { top: 5, right: 20, bottom: 15, left: 26 } | Specify margin |
fillCSI | String | Fill color for tooltip dots (line1) |
fillCBI | String | Fill color for tooltip dots(line2) |
width | String | Width for SVG |
height | String | height for SVG |
Usage/Examples
HTML
<div id="gramexMultilineChart" class=""></div>
JS
const config = {
width: 363,
height: 400,
paddingTop: 5,
paddingBottom: 15,
paddingLeft: 26,
paddingRight: 20,
fillCSI: "#0085CA",
fillCBI: "#FE9D14",
data: [
{
quarter: "Jan",
score_csi: 82,
score_cbi: 47,
},
{
quarter: "Feb",
score_csi: 64,
score_cbi: 36,
},
{
quarter: "Mar",
score_csi: 64,
score_cbi: 41,
},
{
quarter: "Apr",
score_csi: 63,
score_cbi: 23,
},
{
quarter: "May",
score_csi: 71,
score_cbi: 30,
},
{
quarter: "Jun",
score_csi: 64,
score_cbi: 56,
},
{
quarter: "Jul",
score_csi: 62,
score_cbi: 29,
},
{
quarter: "Aug",
score_csi: 72,
score_cbi: 44,
},
],
};
renderMultilineChart("#gramexMultilineChart", config);
7.4.9
5 months ago
7.4.8
6 months ago
7.4.7
6 months ago
7.4.6
6 months ago
7.4.5
7 months ago
7.3.1
8 months ago
7.4.4
8 months ago
7.3.5
8 months ago
7.4.3
8 months ago
7.3.4
8 months ago
7.4.2
8 months ago
7.3.3
8 months ago
7.4.1
8 months ago
7.3.2
8 months ago
7.3.8
8 months ago
7.3.7
8 months ago
7.3.6
8 months ago
7.2.1
9 months ago
7.2.0
9 months ago
7.1.1
9 months ago
7.1.0
9 months ago
7.1.3
9 months ago
7.0.3
9 months ago
7.1.2
9 months ago
7.0.2
11 months ago
7.0.1
12 months ago
1.0.1
12 months ago
7.0.0
12 months ago
1.0.0
12 months ago