You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BalanceChartSeries = new ObservableCollection<ISeries>
{
new LineSeries<double>
{
Name = AppResources.ReportingTab_Accumulated,
Values = new double[] { 20, 5, 0, 4, -3, -12, -4, -6, 2, -4, -8, -7 },
Fill = new SolidColorPaint(AppGlobals.AppColor3.ToSKColor()),
GeometryStroke = new SolidColorPaint(AppGlobals.AppColor3.ToSKColor()),
GeometryFill = new SolidColorPaint(AppGlobals.AppColor3.ToSKColor()),
GeometrySize = 0,
LineSmoothness = 1,
Stroke = new SolidColorPaint(AppGlobals.AppColor4.ToSKColor(), 1),
},
new ColumnSeries<double>
{
Name = AppResources.ReportingTab_Result,
Values = new ObservableCollection<double> { 20, 5, 0, 4, -3, -12, -4, -6, 2, -4, -8, -7 },
Fill = new SolidColorPaint(AppGlobals.AppColor5.ToSKColor()),
}
};
BalanceXAxes = new ObservableCollection<Axis>
{
new Axis
{
Labels = new string[]
{
AppResources.Global_January_Abbreviation,
AppResources.Global_February_Abbreviation,
AppResources.Global_March_Abbreviation,
AppResources.Global_April_Abbreviation,
AppResources.Global_May_Abbreviation,
AppResources.Global_June_Abbreviation,
AppResources.Global_July_Abbreviation,
AppResources.Global_August_Abbreviation,
AppResources.Global_September_Abbreviation,
AppResources.Global_October_Abbreviation,
AppResources.Global_November_Abbreviation,
AppResources.Global_December_Abbreviation
},
LabelsRotation = 90,
SeparatorsAtCenter = false,
TicksAtCenter = true,
ForceStepToMin = true,
MinStep = 1
}
};
BalanceYAxes = new ObservableCollection<Axis>
{
new Axis
{
Labeler = (value) => value.ToString() + " k",
}
};
Which produces this chart:
I have three questions about the produced chart:
Is there is any way to set maximum/minimum axes values based on provided data? In my case, there is no sense to show values up to -20K. By just showing values up to the maximum (20k) / minimum (-12k) would be enough.
Is there any way to ensure BalanceXAxes Labels are always below the minimum value of the chart? In my chart, -20k is showing below the labels.
In my case, I'm showing as BalanceXAxes Labels month abbreviations. I'm wondering if there is a way to modify the tooltip by showing the entire name of the month + the value at that point.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have this code:
Which produces this chart:
I have three questions about the produced chart:
Beta Was this translation helpful? Give feedback.
All reactions