When there is no visible text

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Arction_LasseP

minoru
Posts: 27
Joined: Thu Sep 26, 2013 1:30 am

When there is no visible text

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

User avatar
ArctionPasi
Posts: 1366
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland

Re: When there is no visible text

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
Axis titles and labels hidden
axesStillVisible.jpg (115.83 KiB) Viewed 21765 times
It is working correctly, doesn't it?
LightningChart Support Team, PT

minoru
Posts: 27
Joined: Thu Sep 26, 2013 1:30 am

Re: When there is no visible text

Post by minoru » Wed Nov 20, 2013 8:24 am

Please try to hide also text of Annotation.

Regards,
Minoru

User avatar
ArctionPasi
Posts: 1366
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland

Re: When there is no visible text

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
Triangle annotation, text not visible
triangleAnnotTextHidden.jpg (105.62 KiB) Viewed 21760 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

Re: When there is no visible text

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.
Graph Objects are not visible.
cc.PNG (26.83 KiB) Viewed 21755 times

User avatar
ArctionPasi
Posts: 1366
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland

Re: When there is no visible text

Post by ArctionPasi » Thu Nov 21, 2013 10:27 am

Hi Minoru,

I applied your code, it renders like this for me:
textHidden.jpg
textHidden.jpg (105.75 KiB) Viewed 21749 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

Re: When there is no visible text

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;
m_chart1.Title.Visible = true;
TitleVisible.PNG (32.83 KiB) Viewed 21711 times

User avatar
ArctionPasi
Posts: 1366
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland

Re: When there is no visible text

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

Re: When there is no visible text

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

Re: When there is no visible text

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

User avatar
ArctionPasi
Posts: 1366
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland

Re: When there is no visible text

Post by ArctionPasi » Tue Nov 26, 2013 7:09 am

No problem ;)
LightningChart Support Team, PT