Converting Simple Line chart to Box Plot chart

TeeChart for ActiveX, COM and ASP
Post Reply
SVMan
Newbie
Newbie
Posts: 15
Joined: Wed Jul 26, 2006 12:00 am

Converting Simple Line chart to Box Plot chart

Post by SVMan » Wed Apr 08, 2009 3:48 pm

Hi,

We have a customer with a simple line chart that has one data point per hour for a whole day. Is it possible to convert this simple line chart to a BoxPlot chart?

Let me know.

Regards,

Ravi

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Thu Apr 09, 2009 7:24 am

Hi Ravi,

Yes, you should use the method ChangeSeriesType. For example, if your line series is the first series in your chart (index 0):

Code: Select all

TChart1.ChangeSeriesType 0, scBox
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

SVMan
Newbie
Newbie
Posts: 15
Joined: Wed Jul 26, 2006 12:00 am

Converting Simple Line chart to Box Plot chart

Post by SVMan » Wed Apr 15, 2009 2:11 pm

Hi

Thanks for the reply.

I am sending the attachments to support@steema.com for you to review and respond.
My Colleague tried out your suggestion and he has few more questions as below:
--------------------------
We are already changing the type of chart using this method. However, we are getting strange results. Let me take you through the process via screenshots.



1. Run a report using a Line chart. (Steema - Pic1.JPG, LineChart.tee)

2. Modify the chart changing it to a BoxPlot chart. (Steema - Pic2.JPG)

3. Results show the error. (Steema - Pic3.JPG, BoxPlotChart - Single DataPoints.tee)



Also, when we select multiple data points per hour we get the following error:



4. Results for multiple data points. (Steema – Pic4.JPG, BoxPlotChart - Multiple DataPoints.tee)



The results show instead of having each hour for the day range selected displayed, they are all combined into one and the date in the bottom axis is bad as well.



Does this seem valid that you can change a Line chart to a BoxPlot chart?

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Wed Apr 15, 2009 2:36 pm

Hi Ravi,

I'm afraid that we don't offer support by mail, so the mails sent to support@steema.com are rejected and auto-replied. If you would like to enjoy having this kind of support by mail, please, take a look at ProSupport subscriptions.

On the other hand, you always can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

SVMan
Newbie
Newbie
Posts: 15
Joined: Wed Jul 26, 2006 12:00 am

Post by SVMan » Wed Apr 15, 2009 2:50 pm

Hi Yeray,

We are paying for additional support for this and have already purchased the Prosupport subscription. Should I then email it to pro-support e-mail addres. Let me know.

Regards,
Ravi

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Apr 15, 2009 2:58 pm

Hi Ravi,

Notice that I have edited your last reply as you published the pro-support e-mail address which must only be public to Pro-Support subscribers and those are the only ones entitled to use it.

Having said that, you are free to post your files at the locations Yeray mentioned and continue the discussion here or use a Pro-Support ticket for that.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

SVMan
Newbie
Newbie
Posts: 15
Joined: Wed Jul 26, 2006 12:00 am

Post by SVMan » Wed Apr 15, 2009 3:02 pm

Hi Narcis,

Thanks for your reply. I have emailed it to the prosupport email address.

Regards,

Ravi

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Thu Apr 16, 2009 10:33 am

Hi Ravi,

We have seen the tee files and the pictures you sent and we think that teechart seems to be creating the correct Box. Please, take a look at the following threads where there is explained how we think that boxes should work:

http://www.teechart.net/support/viewtopic.php?t=2599
http://www.teechart.net/support/viewtopic.php?t=5645

Note that a Box series consists of a unique box where all the series' data is represented. If you want more than one box, you need more than one box series, but I think that boxes will lose their meaning if you populate each box with a unique point.

On the other hand, the box series can't decide which of the X labels is the properly to be displayed because all you "sources" line X values are now in the same X position. So maybe you would be interested in using custom labels.

Finally, we are not sure to understand what do you mean with "select multiple data points per hour". It would be helpful if you could send us a simple example project we can run "as-is" or a code snipped that would help us to understand what are you trying to achieve.

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply