-
-
Notifications
You must be signed in to change notification settings - Fork 753
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
How to change range on Y axis #1533
Comments
Maybe you need to change the chart to a dual Y-axis chart. |
@AAChartModel how? I don't see any AAChartType like this. |
I managed to make double `y axis chart, but there is no way to change the background color from White to something else. Setting background doesn't work on this type of chart. _aaChartView.isClearBackgroundColor = YES; Is there any other way to make it another color than white? |
What effect are you looking for? Can you provide a screenshot of the design draft? |
The code of - (void)configureTheOptionsJsonStringWithAAOptions:(AAOptions *)aaOptions {
if (_isClearBackgroundColor) {
aaOptions.chart.backgroundColor = @"rgba(0,0,0,0)";
}
if (_clickEventEnabled == true) {
aaOptions.clickEventEnabled = true;
[self configurePlotOptionsSeriesPointEventsWithAAOptions:aaOptions];
}
if (_mouseOverEventEnabled == true) {
aaOptions.touchEventEnabled = true;
if (_clickEventEnabled == false) {//避免重复调用配置方法
[self configurePlotOptionsSeriesPointEventsWithAAOptions:aaOptions];
}
}
_optionJson = [AAJsonConverter pureOptionsJsonStringWithOptionsInstance:aaOptions];
} The key content if (_isClearBackgroundColor) {
aaOptions.chart.backgroundColor = @"rgba(0,0,0,0)"; // set the chart be clear color
} So, If you just want to change the chart _aaChartView.isClearBackgroundColor = YES; |
I have removed "isClearBackground" property, and manually set:
But it's still white |
You can also see the sample in the demo In this example, the background color is set to AAChart *aaChart = AAChart.new
.backgroundColorSet(@"#191E40"); |
It works with this code sample:
|
Is there a possibility to add 3rd Y axis and to set proper scaling on that? |
I have 2 kind of data. Value2 goes from 0 to 220, so range on X axis is fine.
But on Y axis, it's from 107 to 105, so really small changes.
How to make Y axis more detailed, so changes are more visible?
This is the current code:
The text was updated successfully, but these errors were encountered: