The only Events exposed in the object inspector are:
OnDrawCommandClick
OnDrawCommandCreate
OnPrint
How would I get to the Series1AfterAdd event for instance, as I cannot see how to expose it at design time to add code for the event, for the DBChart on the ppReport.
Search found 12 matches
- Sun Apr 17, 2011 2:56 pm
- Forum: VCL
- Topic: Area Series different colours for XAxis values?
- Replies: 2
- Views: 4994
- Sun Apr 17, 2011 2:35 pm
- Forum: VCL
- Topic: Area Series different colours for XAxis values?
- Replies: 2
- Views: 4994
Area Series different colours for XAxis values?
Hi, I have a ppDBChart on a ppReport (ReportBuilder). The X Axis of the series represents dates. The Y Axis a integer values. I want to give the graph diffrent colours depending on the date range: ie: Sept-Oct - Gradient Brown to Green from left to Right Nov-March - Green April-May - Gradient from L...
- Sun Nov 29, 2009 1:22 pm
- Forum: VCL
- Topic: Switch programatically between HorizontalBar, and Bar
- Replies: 1
- Views: 5431
Switch programatically between HorizontalBar, and Bar
Hi,
Is it at all possible, to toggle the chart between Horizontal Bar, and Bar, with the same data, but differently orientated, according to user preference.
If possible, how do I achieve this in code?
I want to rotate this from HorizontalBar to Bar.
Is it at all possible, to toggle the chart between Horizontal Bar, and Bar, with the same data, but differently orientated, according to user preference.
If possible, how do I achieve this in code?
I want to rotate this from HorizontalBar to Bar.
- Sun Nov 29, 2009 1:18 pm
- Forum: VCL
- Topic: Programatically set Bar Color, Pattern
- Replies: 1
- Views: 4164
Re: Programatically set Bar Color, Pattern
Ok.. a bit wierd, but you have to set both Brush.Color and Brush.BackColor i := 0; While i < 34 do begin DBChartBLUP.Series[i+1].SeriesColor := DBChartBLUP.Series[i].SeriesColor; DBChartBLUP.Series[i+1].Brush.BackColor := DBChartBLUP.Series[i].SeriesColor; DBChartBLUP.Series[i+1].Brush.Color := DBCh...
- Sun Nov 29, 2009 12:07 pm
- Forum: VCL
- Topic: Programatically set Bar Color, Pattern
- Replies: 1
- Views: 4164
Programatically set Bar Color, Pattern
I have a Horizontal bar chart 3D It has 36 series. Each three series must have the same color. I achieve this at runtime using the following code: i := 0; While i < 34 do begin DBChartBLUP.Series[i+1].SeriesColor := DBChartBLUP.Series[i].SeriesColor; DBChartBLUP.Series[i+2].SeriesColor := DBChartBLU...
- Wed Nov 04, 2009 8:19 pm
- Forum: VCL
- Topic: SeriesGroups not reacting at Runtime
- Replies: 3
- Views: 5116
Re: SeriesGroups not reacting at Runtime
V8.02.10861
Also note, that I don't want to build the series groups at runtime, but use them as set up in the IDE.
Regards
Adrian
Also note, that I don't want to build the series groups at runtime, but use them as set up in the IDE.
Regards
Adrian
- Mon Nov 02, 2009 7:36 pm
- Forum: VCL
- Topic: SeriesGroups not reacting at Runtime
- Replies: 3
- Views: 5116
SeriesGroups not reacting at Runtime
I drop a DBchart on a form. I then Add 20 series. I add two Seriesgroups, and assign the series 10 to each seriesgroup. Each series points to its respective datasource. I then tick one of the two seriesgroups, and the chart then displays correctly at runtime. Now I try to change the active seriesgro...
- Thu Dec 13, 2007 5:30 pm
- Forum: VCL
- Topic: How to Copy Chart1 to ppTeeChart1, ie including all data?
- Replies: 11
- Views: 17304
I spoke too soon, well it works, but once you exit the report, all the original chart is destroyed, Ie series missing. I was then advised by digital-metaphors to: lMetaFile: TMetaFile; lRect: TRect; begin lRect.Left := 0; lRect.Top := 0; lRect.Right:=ppImage1.spWidth; lRect.Bottom:=ppImage1.spHeight...
- Tue Dec 11, 2007 9:01 pm
- Forum: VCL
- Topic: How to Copy Chart1 to ppTeeChart1, ie including all data?
- Replies: 11
- Views: 17304
Thanks Narcis. Assign to Picture, works, but there is an issue with quality of final image, when scaled from screen display size, to paper size. So this one didn't work for me. I tried the following code, and worked 100%: ppTeeChart1.Chart.Assign(Chart1); for x := 0 to Chart1.SeriesCount-1 do ppTeeC...
- Sun Dec 09, 2007 6:39 pm
- Forum: VCL
- Topic: How to Copy Chart1 to ppTeeChart1, ie including all data?
- Replies: 11
- Views: 17304
How to Copy Chart1 to ppTeeChart1, ie including all data?
I need to copy a Chart to a ppTeeChart. The Chart is set up by the user. The chart then needs to be copied as is to a ppTeeChart to be used in a ppReport. I tried: uses TeeStore, TeeEditPro .. var stream: TMemoryStream; begin stream:=TMemoryStream.Create; try SaveChartToStream(Chart1,stream); stream...
- Wed Nov 14, 2007 9:07 am
- Forum: VCL
- Topic: Setting series values programatically in ReportBuilder Chart
- Replies: 2
- Views: 4512
Well I've managed the following: Have to add to uses clause: Bar3d // this one took me a while to figure out Then I Procedure... Var seriesA,SeriesB : Tbar3DSeries; begin ... SeriesA := TBar3DSeries.Create(Self); ... ppTeeChart1.Chart.AddSeries(seriesA); SeriesA.AddXY(x,y,'Label',clRed); then I repe...
- Tue Nov 13, 2007 9:15 pm
- Forum: VCL
- Topic: Setting series values programatically in ReportBuilder Chart
- Replies: 2
- Views: 4512
Setting series values programatically in ReportBuilder Chart
I'm having difficulty setting the values for series programatically in a ReportBuilder chart ppReport1.ppTeeChart How do I add two series ie SeriesH, and SeriesL It must be a TBarSeries. I have the series data loaded in a memo. Usually I would just: Series1.clear; SeriesTextSource1.LoadFromStrings(M...