I am making a pie chart and doughnut chart using canvasjs
.
I have the pie chart inside a doughnut chart. I am not that good when it comes to CSS. Here the pie chart is at the center, but still it is very small. I don't know how to make it bigger as it is messing up the pie chart if I am attempt to make it bigger.
Is there any way the pie chart can be made bigger so there would not be much space between pie chart and the doughnut chart.
I am posting a picture of my result here.
I am using these properties:
for doughnut
width="100%" height="250px" top="0px" position="absolute" backgroundColor="transparent" uniqueID ="doughnut"
for pie chart
width="78px" height="100px" top="75px" position="absolute" left="560px" backgroundColor="transparent" uniqueID=”pie”
EDIT : If I increase height and width of pie chart which results in -
Why white space is coming when I have set background color to transparent??
This is my pie chart properties-
type: "pie",
backgroundColor: "transparent",
indexLabelFontColor: "white",
indexLabelFontSize: "14px",
markerType: "circle",
radius : "100%",
innerRadius :"200px",
I want something like this-
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…