SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
Hi guys,
I have some troubles with piecharts in swift. I want to provide custom labels outside of the piecharts segments. I found a screenshot of a nested piechart attached to an issue in your issue tracker. Thats what I want to do in swift, but I couldn’t find out a way to do so. Could you please provide an example code?
Thanks a lot in advance!
Alex
I am extending a PieSegmentLabelFormatterBase to format the segment label of a piechart. however I cannot find any information regarding how I can change its size. So my question is How can I change the font size of piechart labels?
SciChart Android
I only want to draw line chart which update real time. So, I don’t want label and grid. I remove the label and grid via scichart builder options but the chart remain little spacing for label. How to remove these spacing.
Android Version – 7.0
SciChart Version – 2.5.0.2610
My Code –
XAxis = sciChartBuilder.newDateAxis()
.withDrawLabels(false)
.withDrawMajorGridLines(false)
.withDrawMajorBands(false)
.withDrawMinorGridLines(false)
.withVisibleRange(current, graphEnd)
.withAutoRangeMode(AutoRange.Never)
.build();
YAxis = sciChartBuilder.newNumericAxis()
.withDrawLabels(false)
.withDrawMajorGridLines(false)
.withDrawMajorBands(false)
.withDrawMinorGridLines(false)
.withVisibleRange(-MaxY , MaxY)
.withAutoRangeMode(AutoRange.Never)
.build();
ModifierGroup chartModifiers = sciChartBuilder.newModifierGroup()
.withZoomPanModifier().withXyDirection(Direction2D.XDirection).withZoomExtentsY(false).build()
.build();
Hi:
My name is Harold Ramírez and I have a question I would like you to answer because I don’t find any doucmentation about it online.
I have a WPF application with several charts, some of them in 3D. These 3D charts have the X axis in horizontal, Y in vertical and the Z in depth. I want only to keep the labels on the X and Y axis, on the left and bottom of the chart.
The only documentation I have found is this page: https://www.scichart.com/documentation/v5.x/webframe.html#Showing%20Axis%20Labels%20on%20one%20side%20of%20the%203D%20Chart.html, and only shows how to make it in XAML, but I need it to do it programatically in C#.
Thank you for your time.
Harold.
Hi:
My name is Harold Ramírez and I have a question I would like you to answer because I don’t find any doucmentation about it online.
I have a WPF application with several charts, some of them in 3D. These 3D charts have the X axis in horizontal, Y in vertical and the Z in depth. I want only to keep the labels on the X and Y axis, on the left and bottom of the chart.
The only documentation I have found is this page: https://www.scichart.com/documentation/v5.x/webframe.html#Showing%20Axis%20Labels%20on%20one%20side%20of%20the%203D%20Chart.html, and only shows how to make it in XAML, but I need it to do it programatically in C#.
Thank you for your time.
Harold.
Hello,
I’m trying to display a vertical line annotation on a chart using MVVM.
In order to make it work I’ve (All the INotifyPropertyChanged are managed via the BaseViewModel)
public class GraphSurfaceBaseViewModel : BaseViewModel
{
/// <summary>
/// A list of annotations
/// </summary>
public ObservableCollection<IAnnotationViewModel> Annotations { get; private set; }
...
}
I create annotation that way
Graph.Annotations.Add(new VerticalLineAnnotationViewModel()
{
X1 = TimeOfComment,
ShowLabel = true,
StrokeThickness = 2,
XAxisId = "Xaxis",
YAxisId = "Yaxis1",
AnnotationLabels = new ObservableCollection<AnnotationLabel>() { new AnnotationLabel() {Text = "mon test", LabelPlacement = LabelPlacement.TopRight } }
});
And the binding to the scichartsurface is :
<s:SciChartSurface
...
Annotations="{s:AnnotationsBinding Annotations}"
</s:SciChartSurface>
I’ve double check that my x axis and y axis have the same ID as the annotation.
The problem is I want to display several annotation labels but they are not appearing. I suspect a problem via the AnnotationsBinding which is not taking the AnnotationLabels from the VerticalLineAnnotationViewModel.
What I got :
What I want (paint skill here):
For the what I want, I can draw a simple vertical bar by settings showLabel = false but I suppose that all the label I previously added to the
AnnotationLabels will not be shown, that’s why I let it.
Thank you for any help.
Renaud
So I am trying to set paddings on the chart, so that the data series do not touch chart edges
I can’t do it with View’s method setPadding because then the black background is present (screenshot shows padding on all sides but I need just left and right)
Also, I managed to achieve no labels, axes, grids etc. but in totally hacky way; I set .withIsCenterAxis and then all other things to false
.withAxisId(Y_AXIS_ID)
.withDrawMajorBands(false)
.withDrawMajorGridLines(false)
.withDrawMinorGridLines(false)
.withDrawLabels(false)
.withIsCenterAxis(true)
.withDrawMajorTicks(false)
.withDrawMinorTicks(false)
Is there a normal way of doing this?
thanks
Hello,
I’m investigating WPF SciChart features. Does SciChart support point labels for series (here it’s called annotations, right?)?
How I can enable these annotations (or something like these) for series points?
Thanks,
Ivan
Hi Guys,
I have successfully added text labels to my charts using ILabelProvider.
However, some of the charts are showing duplicate labels for each bar, and others are not showing the labels for all bars (even though there is space to do so).
Any idea how to fix these? See the attached images for more details.
Thanks in advance.
Andre.
Hi
I have to build a financial chart, and the Y label must be always multiplied by 0.25 , as you can see in the image attached.
I didn’t find how to reach this goal in the documentation and in the knowledgebase articles either.
Could you please help me?
I created a very simple project with a single grid and one element which is the scichart. Everything renders normally when the program first starts. If I make the window smaller vertically by dragging, everything continues to render correctly, but when I increase the height of the window by dragging, the vertical axis value label (4000.00) gets clipped if I go about 50 pixels more than the original window height specified.
Note: the clipping is all at once, if I go one pixel too far, the labels clip as shown. If I make the window one pixel smaller, they appear normally again.
What can I do?
I have recently upgraded to SciChart 3 without major issues, but one thing that has changed is that the labels on my YAxes get cut-off beyond the minimum and maximum value. It’s a really weird behaviour and I have no idea what may be causing it. Please note that I do want to be able to display the ‘0’ label (that was the reason I updated to the newest version of SciChart). I’ve attached some screenshots that illustrate the problem.
Any ideas?
Thanks,
Charles