Search found 12 matches

by Doogie
Sun Apr 17, 2011 2:56 pm
Forum: VCL
Topic: Area Series different colours for XAxis values?
Replies: 2
Views: 4959

Re: Area Series different colours for XAxis values?

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.
by Doogie
Sun Apr 17, 2011 2:35 pm
Forum: VCL
Topic: Area Series different colours for XAxis values?
Replies: 2
Views: 4959

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...
by Doogie
Sun Nov 29, 2009 1:22 pm
Forum: VCL
Topic: Switch programatically between HorizontalBar, and Bar
Replies: 1
Views: 5376

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.
by Doogie
Sun Nov 29, 2009 1:18 pm
Forum: VCL
Topic: Programatically set Bar Color, Pattern
Replies: 1
Views: 4129

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...
by Doogie
Sun Nov 29, 2009 12:07 pm
Forum: VCL
Topic: Programatically set Bar Color, Pattern
Replies: 1
Views: 4129

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...
by Doogie
Wed Nov 04, 2009 8:19 pm
Forum: VCL
Topic: SeriesGroups not reacting at Runtime
Replies: 3
Views: 5082

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
by Doogie
Mon Nov 02, 2009 7:36 pm
Forum: VCL
Topic: SeriesGroups not reacting at Runtime
Replies: 3
Views: 5082

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...
by Doogie
Thu Dec 13, 2007 5:30 pm
Forum: VCL
Topic: How to Copy Chart1 to ppTeeChart1, ie including all data?
Replies: 11
Views: 17128

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...
by Doogie
Tue Dec 11, 2007 9:01 pm
Forum: VCL
Topic: How to Copy Chart1 to ppTeeChart1, ie including all data?
Replies: 11
Views: 17128

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...
by Doogie
Sun Dec 09, 2007 6:39 pm
Forum: VCL
Topic: How to Copy Chart1 to ppTeeChart1, ie including all data?
Replies: 11
Views: 17128

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...
by Doogie
Wed Nov 14, 2007 9:07 am
Forum: VCL
Topic: Setting series values programatically in ReportBuilder Chart
Replies: 2
Views: 4471

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...
by Doogie
Tue Nov 13, 2007 9:15 pm
Forum: VCL
Topic: Setting series values programatically in ReportBuilder Chart
Replies: 2
Views: 4471

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...