Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread EWB And Charting
Wed, Aug 16 2017 3:21 AMPermanent Link

Frederick Chin

I have a potential client who needs lots of charting in their web application.

Will this be an issue with EWB since those charts come with fancy names? This client deals in asset management, specifically equities.

Note: I see that Steema has a TeeChart HTML5 product. Can it be used with EWB?

--
Frederick
Wed, Aug 16 2017 4:59 AMPermanent Link

Matthew Jones

Frederick Chin wrote:

> I have a potential client who needs lots of charting in their web application.
>
> Will this be an issue with EWB since those charts come with fancy names? This client deals in asset management, specifically equities.
>
> Note: I see that Steema has a TeeChart HTML5 product. Can it be used with EWB?

You can use a canvas for drawing charts, or you can integrate *some* external charting components using frames. I've played with one that a client uses, which I think is HighCharts. It appeared to work fine, but I didn't take the experiment far. There are costs for it...

--

Matthew Jones
Wed, Aug 16 2017 5:44 AMPermanent Link

Frederick Chin

"Matthew Jones" wrote:

/*
You can use a canvas for drawing charts, or you can integrate *some* external charting components using frames. I've played with one that a client uses, which I think is HighCharts. It appeared to work fine, but I didn't take the experiment far. There are costs for it...
*/

Some of those stock charts look pretty complicated to create on a canvas and I'd rather not reinvent the wheel plus there is the problem of deadlines.

I believe that EWB does not have a frame component. Have you used one?

--
Frederick
Wed, Aug 16 2017 6:02 AMPermanent Link

Matthew Jones

Frederick Chin wrote:

> I believe that EWB does not have a frame component. Have you used one?

TBrowser is a frame I think. HighCharts can use a TPanel as the parent. My code includes this:

   pnlGraph.ClientID := 'chart1';

   Highcharts.chart('chart1', xChartOptions);

It was all a little hacky, so not a good sample to share really. But it can be done.

--

Matthew Jones
Wed, Aug 16 2017 10:14 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Frederick,

Matthew is spot-on.  Use the ClientID property to give any container control an HTML ID that can be referenced in the external JS charting, and then use that as the container.  Or, use a TBrowser control (frame) to keep the two completely separate.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Aug 16 2017 12:13 PMPermanent Link

Frederick Chin

"Matthew Jones" wrote:

/*
TBrowser is a frame I think. HighCharts can use a TPanel as the parent. My code includes this:

   pnlGraph.ClientID := 'chart1';

   Highcharts.chart('chart1', xChartOptions);

It was all a little hacky, so not a good sample to share really. But it can be done.
*/

Thanks for the tip. Hacky is good as long as it works. Smile

--
Frederick
Wed, Aug 16 2017 12:15 PMPermanent Link

Frederick Chin

Tim,

/*
Matthew is spot-on.  Use the ClientID property to give any container control an HTML ID that can be referenced in the external JS charting, and then use that as the container.  Or, use a TBrowser control (frame) to keep the two completely separate.
*/

Thanks for the tips.

--
Frederick
Image