A forum dedicated to WPF version of LightningChart Ultimate.
Moderator: Queue Moderators
-
minoru
- Posts: 27
- Joined: Thu Sep 26, 2013 1:30 am
Post
by minoru » Tue Nov 19, 2013 11:57 pm
Code: Select all
LightningChartUltimate m_chart1;
m_chart1 = new LightningChartUltimate();
m_chart1.BeginUpdate();
m_chart1.ViewXY.LegendBox.Visible = false;
m_chart1.Title.Visible = false;
m_chart1.ViewXY.XAxes[0].ValueType = AxisValueType.Number;
m_chart1.ViewXY.XAxes[0].LabelsVisible = false;
m_chart1.ViewXY.YAxes[0].LabelsVisible = false;
m_chart1.ViewXY.XAxes[0].Title.Visible = false;
m_chart1.ViewXY.YAxes[0].Title.Visible = false;
....
m_chart1.EndUpdate();
When there is no visible text, graph objects are not visible.
Regards,
Minoru
-
ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
-
Contact:
Post
by ArctionPasi » Wed Nov 20, 2013 7:39 am
Hi Minoru,
With your code, you are hiding the title of the chart, legend box, and axis titles and their numeric labels. Axes still remain visible.
I applied this code to one of our examples, and it looks like:
- Axis titles and labels hidden
- axesStillVisible.jpg (115.83 KiB) Viewed 24827 times
It is working correctly, doesn't it?
LightningChart Support Team, PT
-
minoru
- Posts: 27
- Joined: Thu Sep 26, 2013 1:30 am
Post
by minoru » Wed Nov 20, 2013 8:24 am
Please try to hide also text of Annotation.
Regards,
Minoru
-
ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
-
Contact:
Post
by ArctionPasi » Wed Nov 20, 2013 9:33 am
For example, if I hide the text from the triangle annotation (on the left side of annotation group):
annotAxisValues1.TextStyle.Visible = false;
The triangle annotation's text is hidden, but annotation is otherwise visible.
- Triangle annotation, text not visible
- triangleAnnotTextHidden.jpg (105.62 KiB) Viewed 24822 times
This is all correct.
Can you point out what is the problem you are seeing. Include a picture, please.
LightningChart Support Team, PT
-
minoru
- Posts: 27
- Joined: Thu Sep 26, 2013 1:30 am
Post
by minoru » Wed Nov 20, 2013 11:51 pm
Code: Select all
public partial class MainWindow : Window
{
private LightningChartUltimate m_chart1;
public MainWindow()
{
InitializeComponent();
m_chart1 = new LightningChartUltimate();
m_chart1.BeginUpdate();
m_chart1.ViewXY.LegendBox.Visible = false;
m_chart1.Title.Visible = false;
m_chart1.ViewXY.XAxes[0].ValueType = AxisValueType.Number;
m_chart1.ViewXY.XAxes[0].LabelsVisible = false;
m_chart1.ViewXY.YAxes[0].LabelsVisible = false;
m_chart1.ViewXY.XAxes[0].Title.Visible = false;
m_chart1.ViewXY.YAxes[0].Title.Visible = false;
SampleDataSeries sds = new SampleDataSeries(m_chart1.ViewXY, m_chart1.ViewXY.XAxes[0], m_chart1.ViewXY.YAxes[0])
{
PointsVisible = true,
SampleFormat = SampleFormat.SingleFloat,
FirstSampleTimeStamp = 1,
SamplingFrequency = 1,
};
float[] samples = new float[5];
for (int ii = 1; ii <= 5; ++ii)
{
samples[ii - 1] = ii;
}
sds.SamplesSingle = samples;
m_chart1.ViewXY.SampleDataSeries.Add(sds);
PointLineSeries pls = new PointLineSeries(m_chart1.ViewXY, m_chart1.ViewXY.XAxes[0], m_chart1.ViewXY.YAxes[0])
{
PointsVisible = true,
};
SeriesPoint[] points = new SeriesPoint[5];
for (int ii = 0; ii < 5; ++ii)
{
points[ii].X = ii + 6;
points[ii].Y = ii + 1;
}
pls.Points = points;
m_chart1.ViewXY.PointLineSeries.Add(pls);
m_chart1.EndUpdate();
gridChart1.Children.Add(m_chart1);
}
}
When all texts are not visible, graph objects are not visible.
Regards,
Minoru
-
Attachments
-
- Graph Objects are not visible.
- cc.PNG (26.83 KiB) Viewed 24817 times
-
ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
-
Contact:
Post
by ArctionPasi » Thu Nov 21, 2013 10:27 am
Hi Minoru,
I applied your code, it renders like this for me:
- textHidden.jpg (105.75 KiB) Viewed 24811 times
And it seems correct.
Please update to newest version (v.5.3.4), and let me know if the problem still persists.
LightningChart Support Team, PT
-
minoru
- Posts: 27
- Joined: Thu Sep 26, 2013 1:30 am
Post
by minoru » Mon Nov 25, 2013 2:43 am
Updated to the latest version, but the problem still persists.
When one or more texts are visible , graph objects are visible.
When all texts are not visible, graph objects are not visible.
It is very strange.
Regards,
Minoru
-
Attachments
-
- m_chart1.Title.Visible = true;
- TitleVisible.PNG (32.83 KiB) Viewed 24773 times
-
ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
-
Contact:
Post
by ArctionPasi » Mon Nov 25, 2013 7:34 am
Maybe it's a a GPU type specific problem. What kind of display adapter do you have in your system? GPU type (AMD, NVidia, Intel), which model?
LightningChart Support Team, PT
-
minoru
- Posts: 27
- Joined: Thu Sep 26, 2013 1:30 am
Post
by minoru » Mon Nov 25, 2013 11:51 pm
Graphics Card : Intel(R) HD Graphics Family
GPU : GT2+
Thanks.
Regards,
Minoru
-
minoru
- Posts: 27
- Joined: Thu Sep 26, 2013 1:30 am
Post
by minoru » Tue Nov 26, 2013 1:47 am
After updating to the latest version of the graphics card driver, the problem has been resolved.
I checked it by two PCs.
I'm sorry for all the fuss .
Thanks.
Minoru
-
ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
-
Contact:
Post
by ArctionPasi » Tue Nov 26, 2013 7:09 am
No problem
LightningChart Support Team, PT