Hi,
I am having an issue with Histogram series in Teechart.net. The histogram series does not group data it just plots the individual values. An actual histogram should group data into different buckets. Should the user pre-process the data into buckets ?
The other issue I am having is, I am resizing all the chart axis using position,start and end to make the chart smaller to add additional custom axis. When I plot some data (point series) in the chart and zoom in the points are plotted out of chart bounds(outside the chart axis). Is there anyway I can avoid this ?
Thanks
Histogram and series position
Hi webuser,
1. Please, could you take a look at the demo at "What's New ?\Welcome !\New Functions\Histogram Function" ?
I think that you are looking for the histogram property "NumBins".
2. You can force the points out of the ChartRect not to be drawn with the code:
1. Please, could you take a look at the demo at "What's New ?\Welcome !\New Functions\Histogram Function" ?
I think that you are looking for the histogram property "NumBins".
2. You can force the points out of the ChartRect not to be drawn with the code:
Code: Select all
tChart1.Aspect.ClipPoints = true;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Hi Yeray,
Is this histogram function new in v3 of teechart.net ? I could not find it in the new features or demos. I was looking here
http://www.steema.com/products/teechart ... tures.html
Thanks,
Is this histogram function new in v3 of teechart.net ? I could not find it in the new features or demos. I was looking here
http://www.steema.com/products/teechart ... tures.html
Thanks,
Hi webuser,
Yes, histogram function is a new feature in the 3rd version. So if you want to do an histogram with v2, I'm afraid you'll have to calculate the values and add them to the histogram series.
And regarding the other issue, I'm still not able to reproduce it here. So, please, could you send us a simple example project we can run "as-is" to reproduce the problem here? You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Yes, histogram function is a new feature in the 3rd version. So if you want to do an histogram with v2, I'm afraid you'll have to calculate the values and add them to the histogram series.
And regarding the other issue, I'm still not able to reproduce it here. So, please, could you send us a simple example project we can run "as-is" to reproduce the problem here? You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Hi Yeray,
Thanks for your reply. I have uploaded a demo project using your upload page. The issue is when you zoom in the points go out of axis bounds, what I have done in this demo is moved the axis around. The project has been uploaded under the name webuser and its a rar file (Tchart_sample1.rar).
The other question I have is does the latest java version of teechart have the histogram functionality ?
Thanks
Thanks for your reply. I have uploaded a demo project using your upload page. The issue is when you zoom in the points go out of axis bounds, what I have done in this demo is moved the axis around. The project has been uploaded under the name webuser and its a rar file (Tchart_sample1.rar).
The other question I have is does the latest java version of teechart have the histogram functionality ?
Thanks
Hi webuser,
The problem is that you are drawing your axis inside the chart rectangle. Your example has a chart with something like this:
I recommend you to use the chart margins instead of changing the axes positions. Something like the following code ends in a similar result than before and it changes the chartrect so the clippoints work fine:
And regarding the other question, yes, teechart java v2 has histogram function.
The problem is that you are drawing your axis inside the chart rectangle. Your example has a chart with something like this:
Code: Select all
tChart1.Axes.Left.RelativePosition = 37;
tChart1.Axes.Left.StartPosition = 13;
tChart1.Axes.Left.EndPosition = 84;
tChart1.Axes.Bottom.RelativePosition = 16;
tChart1.Axes.Bottom.StartPosition = 37;
tChart1.Axes.Bottom.EndPosition = 86;
tChart1.Walls.Back.Visible = false;
Code: Select all
tChart1.Walls.Back.Visible = false;
tChart1.Panel.MarginBottom = 10;
tChart1.Panel.MarginTop = 10;
tChart1.Panel.MarginLeft = 20;
tChart1.Panel.MarginRight = 20;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |