Page 1 of 1

When there is no visible text

Posted: Tue Nov 19, 2013 11:57 pm
by minoru

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

Re: When there is no visible text

Posted: Wed Nov 20, 2013 7:39 am
by ArctionPasi
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 24527 times
It is working correctly, doesn't it?

Re: When there is no visible text

Posted: Wed Nov 20, 2013 8:24 am
by minoru
Please try to hide also text of Annotation.

Regards,
Minoru

Re: When there is no visible text

Posted: Wed Nov 20, 2013 9:33 am
by ArctionPasi
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 24522 times
This is all correct.

Can you point out what is the problem you are seeing. Include a picture, please.

Re: When there is no visible text

Posted: Wed Nov 20, 2013 11:51 pm
by minoru

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

Re: When there is no visible text

Posted: Thu Nov 21, 2013 10:27 am
by ArctionPasi
Hi Minoru,

I applied your code, it renders like this for me:
textHidden.jpg
textHidden.jpg (105.75 KiB) Viewed 24511 times
And it seems correct.

Please update to newest version (v.5.3.4), and let me know if the problem still persists.

Re: When there is no visible text

Posted: Mon Nov 25, 2013 2:43 am
by minoru
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

Re: When there is no visible text

Posted: Mon Nov 25, 2013 7:34 am
by ArctionPasi
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?

Re: When there is no visible text

Posted: Mon Nov 25, 2013 11:51 pm
by minoru
Graphics Card : Intel(R) HD Graphics Family
GPU : GT2+

Thanks.

Regards,
Minoru

Re: When there is no visible text

Posted: Tue Nov 26, 2013 1:47 am
by minoru
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

Re: When there is no visible text

Posted: Tue Nov 26, 2013 7:09 am
by ArctionPasi
No problem ;)