I'm having issues finding how to draw a dashed line as the separators on a pie chart with ios-charts. Do you know if that is possible?
If the documentation says it's not possible (as in you can't set the separator as dashed lines) or if the header does not provide that feature, then I would fork the library, and dig into the method that draws the pie chart and add an instance variable that allows you to set the separator as dashed lines.
Related
I am using the Charts pod for iOS (github here: https://github.com/danielgindi/Charts ) to make a pie chart.
There is a 1 pixel line in between each slice of the chart. I would like to change the color of this line and/or make it thicker. However, I have not been able to find a way to do either of these things. How do I do this?
Here is what I tried unsuccessfully based on what I found in the PieChartView docs:
chart.tintColor = .blue
chart.maxAngle = 5
Its slice spacing between each slice of Pie Chart. If you want to change or increase that space then you can set space using yourPieChartDataSet.sliceSpace = 5.
i think ther are no seprators you can change the background color of your view and set the corner radius to height / 2
I successfully drawn a multiline chart using Charts library in Swift. However there is a minor customisation I need. Looking up the documentation I haven't found anything relative in the properties of datasets and line chart.
Here's slice of screenshot from my multiline chart.
My requirement is all the lines should start from Y-Axis but the first nodal point which is on Left axis shouldn't have a circle on it e.g the (0, 30) point.
Remaining all the nodal points must have a circle on them as shown in the image. Is any property out there in any class which toggles off the first nodal point or any other alternate customization I can do to achieve this?
I'm struggling to find a way to hide the bottom border of the dashed column. Is there a way to do this?
Also, is there a way to make the dashed border look always the same on the corners? It's arbitrary at the moment, which doesn't look great.
I have two series in my highchart. One bar and one line chart. I want the datapoints of the line chart be represented at rectangle or straight lines instead of dots. Is that possible?
Are you looking for "square"? Explained here.
In a chart, I have two lines with the same color and what distinguishes them is the dotted stroke on one of them. However, this difference is not visible in the legend (the two lines are solid).
How can I fix this?