Forum > TAChart

[solved] TAChart right Axis range not right?

(1/1)

yyouchen:
The right axis display value is equal to the left axis value multiplied by the right axis value
How can i fix it?


wp:
The AutoScaleAxisTransform does not work properly when no series is assigned to the axis associated with this transformation. In your example the left axis is not assigned to any series. Change the AxisIndexY of the first lineseries in each chart from -1 (no axis) to 0 (index of left axis).

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Chart1LineSeries1.AxisIndexY := 0;Chart1LineSeries2.AxisIndexY := 2;  // (already assigned in OI, just repeating)Chart2LineSeries1.AxisIndexY := 0;Chart2LineSeries2.AxisIndexY := 2;  // (already assigned in OI, just repeating)

yyouchen:
THANK YOU WP :D :D

Navigation

[0] Message Index

Go to full version