Link to home
Start Free TrialLog in
Avatar of Software Software
Software SoftwareFlag for Austria

asked on

Steema: Represent DBChart in different colors

Hello,
I would like to represent a DBChart depending on the values ​​in different colors.
I get the values ​​from the database.
The change of color I have managed.
How can I assign multiple values ​​to a series and graph them?


query1.open('select * from artikel');
  query1.First;
  while not query1.Eof do
  begin
    if query1.FieldByName('preis').Value < query1.FieldByName('minimum').Value then
      DBChart1.Series[1].Color:=clred;

    else
      DBChart1.Series[1].Color:=clblue; 

Open in new window

This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.