In the readme example there is an error
Closed this issue · 1 comments
dkaushik94 commented
In the example code in the readme there is an error while declaring the graph attribute.
Instead of a dictionary it should be a prop.
Example code in README:
<BubbleChart
**Updated code**
graph = {{
zoom: 1.1,
offsetX: -0.05,
offsetY: -0.01,
}}
====
graph: {
zoom: 1.1,
offsetX: -0.05,
offsetY: -0.01,
},
**Older Code**
width={1000}
height={800}
showLegend={true} // optional value, pass false to disable the legend.
legendPercentage={20} // number that represent the % of with that legend going to use.
legendFont={{
family: 'Arial',
size: 12,
color: '#000',
weight: 'bold',
}}
valueFont={{
family: 'Arial',
size: 12,
color: '#fff',
weight: 'bold',
}}
labelFont={{
family: 'Arial',
size: 16,
color: '#fff',
weight: 'bold',
}}
data={[
{ label: 'CRM', value: 1 },
{ label: 'API', value: 1 },
{ label: 'Data', value: 1 },
{ label: 'Commerce', value: 1 },
{ label: 'AI', value: 3 },
{ label: 'Management', value: 5 },
{ label: 'Testing', value: 6 },
{ label: 'Mobile', value: 9 },
{ label: 'Conversion', value: 9 },
{ label: 'Misc', value: 21 },
{ label: 'Databases', value: 22 },
{ label: 'DevOps', value: 22 },
{ label: 'Javascript', value: 23 },
{ label: 'Languages / Frameworks', value: 25 },
{ label: 'Front End', value: 26 },
{ label: 'Content', value: 26 },
]}
/>