Recent

Author Topic: TListChartSource and bar charts  (Read 3541 times)

mtanner

  • Sr. Member
  • ****
  • Posts: 287
TListChartSource and bar charts
« on: June 20, 2016, 10:51:14 am »
I wish to create a  bar chart, with text labels. So I set up a TListChartSource and populate it ising Clear then multiple adds, giving X,Y values and the text label for wach entry. Assigning the TListChartSource as the source for a TBarSeries, and as the soutce for X-axis marks, gives me the bar cahrt. So far so good.

Now I want to pick out just one of the vars and draw it in a different colour. (FYI the chart is actually a discrete distribution, and the bar I want to highlight is the bar that contains the mean of the distribution). How do I do this? I can draw the "ordinary" bars as usual, but if I set up a separate TListChartSoutce for the special bar, what do I assign as the marks list?

mtanner

  • Sr. Member
  • ****
  • Posts: 287
Re: TListChartSource and bar charts
« Reply #1 on: June 20, 2016, 10:59:33 am »
Please ignore, I see now what to do with TListChartSource, actually in a couple of different ways/

 

TinyPortal © 2005-2018