-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Labels
Help WantedScott won't do this soon, but PRs from the community are welcome!Scott won't do this soon, but PRs from the community are welcome!⚠️ HIGH PRIORITY
Description
Question: (Ask your question here)
How do i set the Value to show below the bar chart? I currenly have a barChart that can both contain negative and positive numbers. I want so that if it is a negative value, the value label should be displayed below the bar chart
I have highlighted where the bar chart has a negativ value, and where it should be.
ScottPlot Version: (What NuGet package are you using?)
5.0.53
Code Sample: See http://scottplot.net/faq/repro/ for tips about creating reproducible code samples
List<Bar> bars = new List<Bar>();
foreach (var item in nettoVaekst.Select((value, i) => (value, i)))
{
bars.Add(new()
{
Position = item.i,
FillColor = ScottPlot.Color.FromHex("#80933f"),
LineWidth = 0,
Size = 0.6,
Value = item.value.Vaekst,
Label = $"{item.value.Vaekst}",
});
}
Plot barChart = new();
var barPlot = barChart.Add.Bars(bars);
barPlot.ValueLabelStyle.FontSize = 16
barPlot.ValueLabelStyle.Bold = true;Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Help WantedScott won't do this soon, but PRs from the community are welcome!Scott won't do this soon, but PRs from the community are welcome!⚠️ HIGH PRIORITY
