I cannot get SCILinearGradientBrushStyle working on a donut chart. Only radial gradients work
Here is my code sample:
let segment = SCIPieSegment()
segment.fillStyle = SCILinearGradientBrushStyle(colorCodeStart: 0xff007aff, finish: 0x4D007aff, direction: .horizontal)
segment.value = 100.0
segment.title = "Segment"
donutSeries.segments.add(segment)
The segment just renders a flat color
- Ryan Chesla asked 5 years ago
- last active 5 years ago
Hello Team,
In Pie Chart with DonutSeries, the segment spacing seems to have no effect on graph.
donutSeries.segmentSpacing = 10
Thanks
- Sandeep Dhull asked 5 years ago
- last active 5 years ago
Hi
I am developing a Xamarin iOS application and I’m using a SCIPieChartSurface. I can create the chart and set its values, but it is not possible to auto-update the donut with new data.
I am trying to update the value by doing:
myDonut.MyPieSegment.Value = newValue;
But nothing happends…
- Andreas Svensson asked 6 years ago
- last active 6 years ago
Hi
I am developing a Xamarin iOS application and I’m using a SCIPieChartSurface. I can create the chart and set its values, but is is not possible to auto-update the donut with new data.
I am trying to update the value by doing:
myDonut.MyPieSegment.Value = newValue;
But nothing happends…
I heard it was a bug in the API for Android a month ago, is this similar? Or am I doing something wrong?
Thanks in advance!
Best regards
Jonas
- Jonas Olsson asked 6 years ago
- last active 4 years ago
Hi
Is there a way to just change the values of the pie segments so it get updated on the donut chart.
If I remove and add the pie segments again it works, is this the correct way?
Also I can’t find any documentation around the donut for android/xamarin
regards
Per
- robin grönlund asked 6 years ago
- last active 6 years ago
Is there any way to configure the padding on a pie/donut chart? I’m trying to squeeze a few in a dashboard type arrangement and there’s about 100px of padding either side of the doughnut itself that’s taking up a lot of space:
<s:SciChartDonutSurface Grid.Column="0"
SegmentSpacing="4"
ItemsSource="{Binding DonutModels}"
ShowLegend="False"
ShowOutsideLabel="False"
BorderBrush="Black" BorderThickness="1"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
MinHeight="300" MinWidth="300" AllowClickSelection="False" AllowMultiSelect="False"
ShowTooltip="False">
<s:SciChartDonutSurface.ItemTemplate>
<DataTemplate DataType="gauge:DonutSegmentViewModel">
<s:DonutSegment Fill="{Binding Fill, Mode=TwoWay}"
IsSelected="{Binding IsSelected, Mode=TwoWay}"
SegmentValue="{Binding Value, Mode=TwoWay}"
Text="{Binding Name, Mode=TwoWay}"
Stroke="{Binding Stroke, Mode=TwoWay}"
StrokeThickness="{Binding StrokeThickness, Mode=TwoWay}"/>
</DataTemplate>
</s:SciChartDonutSurface.ItemTemplate>
- Ken Hobbs asked 7 years ago
- last active 7 years ago