1

I am trying to generate a graph where the "y" are quantity and the "x" can only be 5 items, each one has what they have to do and what they have done.

Each item is taken from different queries so I manually load the graph, then I have two problems in the x to put the titles that are different and also I assign the colors of the bars, so for example, put yellow the bars that indicate what it has what to do and blue what he has done.

In graph in the "X" the 0 for example should say house, the 1 car, 2 window, I add the data with Series1.Add (prg_caminata, ''); and Series2.Add (walk_type, ''); where the first tells me what it should have and the second what it has done.

Graph

1 Answer 1

1

Seems traditional usage of AddBar makes what you want:

Series3.AddBar(13, 'Car', clBlue);
Series4.AddBar(11, 'Fuel', clRed);
Series3.AddBar(8, 'Dog', clMaroon);
Series4.AddBar(12, 'Food', clGray);

enter image description here

2
  • Thank you very much, I could not find the instruction
    – ricardo
    Commented Mar 25, 2021 at 11:44
  • If problem is solved, you can mark answer as solution (green mark)
    – MBo
    Commented Mar 26, 2021 at 6:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.