Is it possible to center the marks on a Bar and a HorizBar?
And if it is possible how do I do it?
I am using the TeeChartPHP2012.10.08.001_with_Sources version
Center mark in Bar and HorizBar
Re: Center mark in Bar and HorizBar
Hi Martin,
MarksOnBar is a feature added in TeeChart VCL quite recently. I've added to the with list the possibility to port it to the PHP version (TF90016436).
MarksOnBar is a feature added in TeeChart VCL quite recently. I've added to the with list the possibility to port it to the PHP version (TF90016436).
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Center mark in Bar and HorizBar
Hi Yeray,
So it's not possible right know to center a mark?
How about the Gantt() ? The mark is centered there.
Or does that work different?
So it's not possible right know to center a mark?
How about the Gantt() ? The mark is centered there.
Or does that work different?
Re: Center mark in Bar and HorizBar
Hi
In the meanwhile you could calculate and set the marks positions manually. Here you have an example:
In the meanwhile you could calculate and set the marks positions manually. Here you have an example:
Code: Select all
$chart = new TChart(700,500);
$chart->getAspect()->setView3D(false);
$bar = new Bar($chart->getChart());
$bar->fillSampleValues();
$bar->getMarks()->getArrow()->setVisible(false);
$chart->doInvalidate();
for($i=0;$i<sizeof($bar->getMarks()->getPositions());$i++) {
$p = $bar->getMarks()->getPositions()->getPosition($i);
if ($p!=null) {
$p->custom = true;
$p->leftTop->y = ($chart->getAxes()->getBottom()->getPosAxis() + $bar->calcYPos($i)) / 2;
}
}
$chart->render();
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Center mark in Bar and HorizBar
They have indeed a custom position.
But not the position I want.
I have the bars 'stacked'.
Does that influence the behavior of the marks?
But not the position I want.
I have the bars 'stacked'.
Does that influence the behavior of the marks?
- Attachments
-
- custom_mark_pos.JPG (35.64 KiB) Viewed 47900 times
Re: Center mark in Bar and HorizBar
Hi Martin,
The different possibilities like Bar/HorizBar series, or the MultiBar style (Stacked,...) should be handled manually while the MarksOnBar feature isn't implemented.
Here you can find an example in VCL where the same was discussed.
http://www.teechart.net/support/viewtop ... bar#p59305
The different possibilities like Bar/HorizBar series, or the MultiBar style (Stacked,...) should be handled manually while the MarksOnBar feature isn't implemented.
Here you can find an example in VCL where the same was discussed.
http://www.teechart.net/support/viewtop ... bar#p59305
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |