Forum > TAChart
Area Series settings
kapibara:
Is it possible to show the Area Series without the black border around?
wp:
--- 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";}};} ---Chart1AreaSeries1.AreaContourPen.Style := psClear; // outer border// Maybe alsoChart1AreaSeries1.AreaLinesPen.Style := psClear; // vertical drop lines
kapibara:
Thanks for tip. But did you try it? The contour border stays black and same thickness even after changing settings. Removing ChartStyles helped.
I'm on both fpc trunk and laz trunk now.
wp:
You did not say that you had a multi-valued series requiring Styles. In this case, the Styles take over the formatting of each sub-series. You must set the Pen.Style of each style item to psClear. This leaves you with the dropdown lines which are not controlled by the Styles, but you can simply set the AreaSeries.AreaLinePen.Style to psClear which handles all sub-series.
kapibara:
Project is the area series demo from lazarus trunk. (forgot to say) But with Styles enabled, the black outline border doesnt go away whatever setting i try. Only removing Styles does the trick.
Attached a demo, I dont think i missed anything. Just make sure Styles is selected
Navigation
[0] Message Index
[#] Next page