This is a migrated thread and some comments may be shown as answers.

Set Candlestick chart dynamically

4 Answers 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 30 May 2008, 04:44 PM
anyone know the settings to create a candlestick chart?  i have a datatable with the appropriate values and i need to bind them to the chart through code.

ChartSeries s = new ChartSeries();
            s.Type = ChartSeriesType.CandleStick;
            s.DataLabelsColumn = "Open";
            //s.DataXColumn = "Date";
            s.DataYColumn = "Open";
            //s.DataYColumn2 = "High";
            //s.DataYColumn3 = "Low";
            //s.DataYColumn4 = "Close";
            //s.DataXColumn = "Date";
            //s.DataXColumn2 = "Date";
            this.chart1.Series.Add(s);

4 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 30 May 2008, 06:08 PM
let me claify:

ChartSeries s = new ChartSeries();
            s.Type = ChartSeriesType.CandleStick;
            s.DataYColumn = "Open";
            s.DataYColumn2 = "High";
            s.DataYColumn3 = "Low";
            s.DataYColumn4 = "Close";
            this.chart1.Series.Add(s);

get's me the following error:

CandleStick series requires all Y values to be set.
0
Steve
Telerik team
answered on 02 Jun 2008, 10:38 AM
Hi Michael,

This is a known bug of our chart component that is logged in our TODO list and will be addressed for a subsequent release. Unfortunately there is no temporary workaround available for which we apologize.

Sorry for the inconvenience and thank you for the patience.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Gergo
Top achievements
Rank 1
answered on 30 May 2013, 09:00 PM
Hello!

What about this bug when adding chartseries from C#. The last post was in 2008 and I've still get this error in 2013?!?!

"CandleStick series requires all Y values to be set."

Please help me!
0
IvanY
Telerik team
answered on 04 Jun 2013, 02:26 PM
Hi Gergo,

Currently the Chart item is obsolete and it will not be developed any longer. You can have a look at the new Graph item, but you should know that it does not support the Candlestick scenario. However you can rest assured that it is in our plans for improvement and it will be added in a subsequent version of Telerik Reporting. Please note that we cannot engage with certain time frames at that point.

Regards,
IvanY
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Steve
Telerik team
Gergo
Top achievements
Rank 1
IvanY
Telerik team
Share this question
or