Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yAxisPOI below 0 when xAxisLabelsFrom rotated 90 degrees #211

Open
nikolafamit opened this issue Jul 3, 2022 · 0 comments
Open

yAxisPOI below 0 when xAxisLabelsFrom rotated 90 degrees #211

nikolafamit opened this issue Jul 3, 2022 · 0 comments

Comments

@nikolafamit
Copy link

When i rotate labels for 90 degrees in xAxisLabelsFrom for BarChartStyle, the yAxisPOI goes under 0.
On the pic yAxisPOI value is 500.
Also it's moved out of screen
Screen Shot 2022-07-04 at 00 54 38 AM
0

BarChart(chartData: datas)
	.touchOverlay(chartData: datas)
	.xAxisLabels(chartData: datas)
	.yAxisLabels(chartData: datas)
	.headerBox(chartData: datas)
	.yAxisPOI(chartData: datas,
			markerName: "Minimum Recommended",
			markerValue: Double(statTargetValueDay) ?? 0.0,
			labelPosition: .yAxis(specifier: "%.2f", formatter: .none),
			labelColour: Color.accentColor,
			labelBackground: .clear ,
			lineColour: Color(red: 0.25, green: 0.75, blue: 1.0),
			strokeStyle: StrokeStyle(lineWidth: 1, dash: [5,10]))
	.id(datas.id)
	.frame(height: UIScreen.screenHeight/2.2,alignment: .center)
	.padding([.vertical,.horizontal])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant