Search found 43 matches

by Jim Green
Fri Jun 27, 2014 6:22 pm
Forum: Javascript / HTML5
Topic: Chart in Canvas sized to 100%
Replies: 5
Views: 2685

Chart in Canvas sized to 100%

I'm not having any luck drawing a chart in a Canvas sized to 100% width and height. It looks magnified several times and only shows the upper left of the chart (though the title looks centered). I've attached a screen shot of a Chrome session with the developer tools open. (The chart lines are only ...
by Jim Green
Fri Jun 20, 2014 3:00 pm
Forum: Javascript / HTML5
Topic: LoadChartFromFile?
Replies: 3
Views: 1545

Re: LoadChartFromFile?

Update: I changed the link to "v2014.04.28.1.6" and it's showing now.
by Jim Green
Fri Jun 20, 2014 2:57 pm
Forum: Javascript / HTML5
Topic: LoadChartFromFile?
Replies: 3
Views: 1545

Re: LoadChartFromFile?

Are you referring to TeeSaveToJavascriptFile? What is the procedure - to insert the output into an <iframe>? Will the chart re-draw if the container is resized? BTW, I did export a simple chart with one bar series and tried viewing it in Firefox and Chrome. Neither chart rendered except for the titl...
by Jim Green
Thu Jun 19, 2014 4:15 pm
Forum: Javascript / HTML5
Topic: LoadChartFromFile?
Replies: 3
Views: 1545

LoadChartFromFile?

Is there any equivalent to LoadChartFromFile? I have Delphi VCL server code that produces a TChart, converts it to a PNG, and returns the image to the browser to display in an IMG. It would be preferable to render the chart in the browser, to avoid transmitting image data and to have the chart redra...
by Jim Green
Tue Apr 30, 2013 4:49 pm
Forum: VCL
Topic: Line series - line colors
Replies: 1
Views: 634

Line series - line colors

I have a LS where the points are different colors. The line between two points is currently the color of the point to the right. Is there a way to make the line color to be the color of the *left* point? (Why: the point colors represent a financial state at the beginning of a year and that state con...
by Jim Green
Mon Mar 11, 2013 2:52 pm
Forum: VCL
Topic: Bar series patterns - line width
Replies: 4
Views: 1480

Re: Bar series patterns - line width

I mean that a 16x16 bitmap produces a distinctly visible pattern on a 96 DPI screen, but on a 600 DPI printer produces just a paler shade of the color. See the two attached PDF's. "PSP_PRINT" is a screen capture with the desired pattern. "Chart1" is the printed version - the pattern is so fine that ...
by Jim Green
Fri Mar 08, 2013 6:08 pm
Forum: VCL
Topic: Bar series patterns - line width
Replies: 4
Views: 1480

Re: Bar series patterns - line width

OK, I created a 16x16 2-color bitmap from a screen capture of an Excel chart and set the BarBrush.Image to that file. Looks great!

However, when I print the patterns are indistinguishable (e.g., up vs. down diagonal). Any way to scale the line widths up for higher resolution targets?
by Jim Green
Fri Mar 08, 2013 5:14 pm
Forum: VCL
Topic: Bar series patterns - line width
Replies: 4
Views: 1480

Bar series patterns - line width

I would like to have patterns, like Diagonal, with wider lines (they appear to be just one pixel?). E.g., like Excel's msoPatternWideDownwardDiagonal pattern fill.

Is this possible?

Thanks.
by Jim Green
Tue Aug 21, 2012 2:34 pm
Forum: VCL
Topic: ColorEachPoint and Gradient?
Replies: 3
Views: 929

Re: ColorEachPoint and Gradient?

Yeray, I should have mentioned that I'm specifying the colors - positive values in green and negative in red, but a gradient version of each color. So I have: if series.ColorEachPoint then if y < y0 then color := clRed else color := clGreen else color := clDefault; series.AddXY(x, y, '', color); Whe...
by Jim Green
Mon Aug 20, 2012 8:33 pm
Forum: VCL
Topic: ColorEachPoint and Gradient?
Replies: 3
Views: 929

ColorEachPoint and Gradient?

Hello, is it possible to use BarSeries.ColorEachPoint and have a gradient?

Thanks.
by Jim Green
Tue Jun 26, 2012 6:30 pm
Forum: VCL
Topic: Chart transparency
Replies: 5
Views: 1572

Re: Chart transparency

The link you gave is to a thread title "Anchors not published" (?) However, if you're referring to this: if not Assigned(Back) then begin Back:=TBitmap.Create; Back.Width:=Chart1.Width; Back.Height:=Chart1.Height; Back.Canvas.CopyRect(Chart1.ClientRect,Canvas,Chart1.BoundsRect); end; if Chart1.Color...
by Jim Green
Fri Jun 22, 2012 2:24 pm
Forum: VCL
Topic: Chart transparency
Replies: 5
Views: 1572

Re: Chart transparency

Sandra, thanks for the reply. Sorry, no, this produces a completely white chart (using Standard 2010.01.20814) I don't see anything in the code below that indicates transparency for the outer area. (I DO see a Transparent property for the BackWall that does let the Chart1.Color show through.) Note t...
by Jim Green
Tue Jun 19, 2012 8:13 pm
Forum: VCL
Topic: Chart transparency
Replies: 5
Views: 1572

Chart transparency

Hello, I have both Pro 7.08 (in Delphi 2006) and Standard 2010.01.20814 (in Delphi XE). I am looking to get a white interior (the area within the axes) and transparent outside of this to the edges of the chart. The white interior is fine (BackWall.Color=clWhite and Transparent=False) but I don't see...