[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Chart.js 2 => 5  XML
Forum Index -> Development
Author Message
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

(problem reported by mail - response through forum)

After updating the Captaincasa version from 20231004 to 20231127, barcharts no longer work correctly: in stacked column charts the stacks are now shown as separate columns next to each other, in layer charts the largest layer is now displayed as the top one, which means that you can only see the other layers at the edge of the diagram sees points. We suspect this is related to the Chart.js update?

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

We see that there are certain incompatibilities in the definition of the scales. Instead of "xscale" and "yscale" with some array info inside you now have to define:

Code:
         "scales": 
         {
             "x": 
             {
                 "display": true,
                 "scaleLabel": 
                 {
                     "display": true,
                     "labelString": "Month"
                 }
             },
             "y": 
             {
                 "display": true,
                 "stacked": true,
                 "scaleLabel": 
                 {
                     "display": true,
                     "labelString": "Revenue"
                 }
             }
 


We updated out demos accordingly. (Part of today's update.)

Kind regards! Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team