Search found 10 matches
- Mon Jan 19, 2004 3:51 pm
- Forum: VCL
- Topic: Adding points at runtime
- Replies: 1
- Views: 8317
Adding points at runtime
I need to create a grouped bar diagram (MultiBar := mbSide) at runtime. This works fine as long as all groups have the same values. For example, with this values all works fine, if I want to show these values grouped by month: Product code Month Quantity produced 10 Jan 300 10 Feb 325 10 Mar 287 12 ...
- Wed Nov 26, 2003 3:00 pm
- Forum: VCL
- Topic: Marks inside of stacked bars?
- Replies: 11
- Views: 37396
- Wed Nov 26, 2003 1:24 pm
- Forum: VCL
- Topic: Bring TSeriesMarkPosition to front
- Replies: 7
- Views: 24736
I'm sorry, I cannot reproduce the problem here using the code Here is some example code that you can use to create the bars: function CreateSeries(aTitle: string; aColor: TColor): TBarSeries; begin Result := TBarSeries.Create(Chart); with Result do begin ParentChart := Chart; Title := aTitle; Multi...
- Wed Nov 26, 2003 9:36 am
- Forum: VCL
- Topic: Bring TSeriesMarkPosition to front
- Replies: 7
- Views: 24736
could you please attach the code that you are using to reproduce the problem ? Sure: procedure TForm1.PositionChartMarks(BarSeries: TBarSeries); var i: integer; YPos: integer; BarTop: integer; BarBottom: integer; XPos: integer; MarkPos: TSeriesMarkPosition; begin MarkPos := TSeriesMarkPosition.Crea...
- Mon Nov 24, 2003 3:30 pm
- Forum: VCL
- Topic: Bring TSeriesMarkPosition to front
- Replies: 7
- Views: 24736
Bring TSeriesMarkPosition to front
I've a stacked bar and want to print a TSeriesMarkPosition from one stack over *another* stack. The problem is that the TSeriesMarkPosition is printed *behind* the stack. Is there a way to say that the TSeriesMarkPosition should be printed in front of *any* stacks?
Thanks in advance
Pascal
Thanks in advance
Pascal
- Mon Nov 24, 2003 3:21 pm
- Forum: VCL
- Topic: Marks inside of stacked bars?
- Replies: 11
- Views: 37396
You'll have to calculate it manually. First calculate the sum of all values, except the last series value. Then the middle of last bar will be equal to ("sum of all values" + "sum of all except the last value")*0.5. I think you misunderstood my question. My problem is, that the code you've posted f...
- Mon Nov 24, 2003 1:16 pm
- Forum: VCL
- Topic: Marks inside of stacked bars?
- Replies: 11
- Views: 37396
Yes, sure. Try using the following code: The problem with this code is, that it will center the Marks for the size of all stacked bars. What I need is to center the mark between the top of a stack and the bottom of a stack (and not the bottom of the bar / position of the x axes). Is there a way to ...
- Fri Nov 21, 2003 6:51 pm
- Forum: VCL
- Topic: Marks inside of stacked bars?
- Replies: 11
- Views: 37396
Is there also a possibility to have the summary *AND* the marks (the summary in an additional mark above all stacks?Marjan wrote: Yes, it can be done. Basically, hide all other marks and display only last (top) series marks. Then in it's OnGetMarkText event, calculate the sum for each stack
Thanks
Pascal
- Wed Nov 19, 2003 3:02 pm
- Forum: VCL
- Topic: Marks inside of stacked bars?
- Replies: 11
- Views: 37396
One easy workarund for this is to set marks ArrowLength propety to negative (reasonable) value. This is what i currently do, but for the reasons you mentioned it's not an acceptable solution for me. calculate best negative value to position series marks in the middle of bars, add code for the event...
- Wed Nov 19, 2003 1:27 pm
- Forum: VCL
- Topic: Marks inside of stacked bars?
- Replies: 11
- Views: 37396
Marks inside of stacked bars?
The marks of a stacked TBarSeries appear above the top of each bar. I'd like to have the marks appear inside of each stack (with the same distance for each stack from the bottom of the stack) and with a mark at the top of the topmost stack showing the total of all the Series in the stack. I've alrea...