Atozed Forums

Full Version: TIWChartJS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does anyone use TIWChart component?
With Delphi12 and IW 16.0.2 installed one chart can be created.
But the following is not working:


VAR SecondSeries: TChartSeries;
...
SecondSeries := IWChartJS1.AddSeries(ctBar, 'test);
>> Errormessage:
E2010 Incompatible types: 'VCLTee.TeEngine.TChartSeries' and 'IWChartJS.TChartSeries'


Does anyone have an idea how to solve the problem?

Thank you very much.
As much as I love Intraweb, as frusttrating is the support.
It seems as the Forum is not a good place to ask questions or get answers.
The provided examples for Intraweb are based on version 15 and does not help if one is using IW16.

Solution that I found after several hours is:
IWChartJS1.AddSeries(ctBar, 'test) and then call IWChartJS1.Series[1]
So SecondSeries is not needed...

Maybe helpful for someone who still use this forum.
Hi Thomas,

Sorry, I saw your post only just now (I'm not Intraweb support).

With me, the SecondSeries solution works.
But I can remember that I had some issues at first.
Do you, by any chance, have TMS VCLChart installed?
I did, and after uninstalling this, everything worked as it should.

But since you found a solution for yourself, let this also be helpful to others.

Cheers, Paul
(02-09-2025, 09:42 AM)Thomas Wrote: [ -> ]Does anyone use TIWChart component?
With Delphi12 and IW 16.0.2 installed one chart can be created.
But the following is not working:


VAR SecondSeries: TChartSeries;
...
SecondSeries := IWChartJS1.AddSeries(ctBar, 'test);
>> Errormessage:
E2010 Incompatible types: 'VCLTee.TeEngine.TChartSeries' and 'IWChartJS.TChartSeries'


Does anyone have an idea how to solve the problem?

Thank you very much.

Remove any TeeChart (the VCL Chart library) unit from your IntraWeb form.

If you are using IWChartJS, you don't need TeeChart.
(02-12-2025, 05:29 PM)Thomas Wrote: [ -> ]As much as I love Intraweb, as frusttrating is the support.
It seems as the Forum is not a good place to ask questions or get answers.
The provided examples for Intraweb are based on version 15 and does not help if one is using IW16.

Solution that I found after several hours is:
IWChartJS1.AddSeries(ctBar, 'test) and then callĀ  IWChartJS1.Series[1]
So SecondSeries is not needed...

Maybe helpful for someone who still use this forum.

Sorry for your experience, Thomas, but the compiler is pretty clear in this regard:

E2010 Incompatible types: 'VCLTee.TeEngine.TChartSeries' and 'IWChartJS.TChartSeries'

You are trying to assing a IWChart.TChartSeries to a VCLTee.TeEngine.TChartSeries variable, probably because you have some TeeChart unit in your IntraWeb form.

These units are very likely related to the TChart (the VCL chart): VCLTee.Chart, VclTee.TeeGDIPlus, VCLTee.TeEngine, Vcl.ExtCtrls, VCLTee.TeeProcs

You must remove them all if not using TeeChart in your IntraWeb project.

If you intend to have both in your form, you must fully qualify the type in your declaration, this way:

VAR SecondSeries: IWChart.TChartSeries;