HELP ChartJS3 DateTime

0
0

Hi,

please I need help, I’m not eable to create a ChartJS3 with datetime in X.

and if I set Options.Scales.xAxes(0).Type = Wisej.Web.Ext.ChartJS3.ScaleType.Time

the chart it clear all

best

Cristian

  • You must to post comments
0
0

SOLVED!

in the extension source code I have add this javascript:

chartjs-adapter-moment v1.0.0

https://cdnjs.com/libraries/chartjs-adapter-moment

 

now only

.Options.Scales.xAxes(0).Time.DisplayFormats don’t works but I can continue my project and set the format directily in js selecting by Options.Scales.xAxes(0).Time.Unit = TimeScaleTimeUnit

🙂

  • You must to post comments
0
0

the console write: 011432 Wisej: This method is not implemented: Check that a complete date adapter is provided.

  • You must to post comments
0
0

Hi Levie,

I spoke too soon. I attach a test proj.

There is two problem.

1) ScaleType don’t work with time

2) then if I set Linear, the STEP is ignored.

In the example that I attached you can see that in the hours 13:00 there is displayed too much point

chartjs works with datetime, but I cannot use chartjs and chartjs3 in the same project cause conflicts.

here: https://www.chartjs.org/docs/master/getting-started/v3-migration.html

for time type it write about data adapter, but I don’t understand

I have a project stuck by this problem, for me a workaround would be able to use chartjs and chartjs3 in the same project

best

Cristian

  • You must to post comments
0
0

Hi Cristian,

Can you please attach a small sample and link to a demo you’re trying to reproduce?

Thanks,

Levie

  • Cristian Zerbinati
    Hi Levie, I have just “solved”… The chart Js3 do not have a date time adapter, I must use x data as string instead time
  • Cristian Zerbinati
    I spoke too soon. I attach a test proj.
  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.