Closed Ale111 closed 2 years ago
Hi, are you using yAxisGrid
or xAxisGrid
in the view?
StackedBarChart(chartData: data)
.yAxisGrid(chartData: data)
yAxisGridStyle: GridStyle(numberOfLines: 5,
lineColour: Color.gray.opacity(0.25),
dash: []),
Yeap.. I was missing .yAxisGrid... my fault.
Thank you a lot.
Work fine now!
I'm trying to create a StackedBarChart with an horizontal solid lines grid, but I have not found a way to do this. I don't know where I'm missing.
Here is the end of my makedata()
`
let yAxisGridStyle = GridStyle( numberOfLines: 7, lineColour: Color.black, lineWidth: 1, dash: [1000] )
// yAxisGridStyle: yAxisGridStyle, yAxisNumberOfLabels: 7, yAxisLabelType: .numeric, baseline: .zero, topLine: .maximum(of: costi.totale))) `
And here there is the result, as well, uncomment the line "yAxisGridStyle: yAxisGridStyle," has no effect on drawing horizontal grid. I need to have Horizontal lines grid only instead of verticals.
Thanks in advance for the help!