Code Monkey home page Code Monkey logo

Comments (7)

GhilesHideur avatar GhilesHideur commented on June 11, 2024

It's done.
Here is an example of the new format:
{
"start": "YYYY-MM-DD",
"end" : "YYYY-MM-DD",
"values" : [
{
"date": "YYYY-MM-DD",
"value": 20
},
{
"date": "YYYY-MM-DD",
"value": 20
}
]
}

from chalk-it.

bengaid avatar bengaid commented on June 11, 2024

Thanks Ghiles.
Testing gives the following error (on branch issue_88)

setValue got exception with data 'test'. ReferenceError: parseIn is not defined
angular.js:15567  ReferenceError: parseIn is not defined
    at calendarD3Widget.render (plugin-calendar-d3-widgets.js:80:89)
    at new calendarD3Widget (plugin-calendar-d3-widgets.js:434:14)
    at calendarD3WidgetPluginClass.createWidget (plugin-base.js:31:21)
    at calendarD3WidgetPluginClass.copyWidget (plugin-base.js:39:21)
    at Object.copyWidget (plugin-handler.js:48:33)
    at widgetContainerClass.replaceWidget (widget-container.js:104:71)
    at _postChangeUpdates (editor.actions.js:607:21)
    at SetWidgetParametersAction._postChangeUpdates (editor.actions.js:659:5)
    at SetWidgetParametersAction.run (editor.actions.js:680:10)
    at UndoManager.execute (editor.undo-manager.js:118:16)
(anonymous) @ angular.js:15567
plugin-calendar-d3-widgets.js:80  Uncaught ReferenceError: parseIn is not defined
    at calendarD3Widget.render (plugin-calendar-d3-widgets.js:80:89)
    at calendarD3Widget.rescale (plugin-calendar-d3-widgets.js:51:18)
    at rescaleWidget (main-common.js:102:24)
    at rescale (edit-widgets.js:1039:25)
    at Object.resizeDashboard (edit-widgets.js:1054:9)
    at main-common.js:83:34
    at dispatch (jquery.js:5:10006)
    at y.handle (jquery.js:5:6789)

from chalk-it.

GhilesHideur avatar GhilesHideur commented on June 11, 2024

It's done.

from chalk-it.

bengaid avatar bengaid commented on June 11, 2024
  • Start and end colors not taken into accout
  • Undefined colors not taken into accout

from chalk-it.

GhilesHideur avatar GhilesHideur commented on June 11, 2024

It's done

from chalk-it.

bengaid avatar bengaid commented on June 11, 2024

Sorry, but I got this error at editor:

setValue got exception with data 'v'. TypeError: Cannot read properties of null (reading 'getTime')
angular.js:15567  TypeError: Cannot read properties of null (reading 'getTime')
    at plugin-calendar-d3-widgets.js:92:91
    at Array.sort (<anonymous>)
    at calendarD3Widget.render (plugin-calendar-d3-widgets.js:92:53)
    at new calendarD3Widget (plugin-calendar-d3-widgets.js:435:14)
    at calendarD3WidgetPluginClass.createWidget (plugin-base.js:31:21)
    at calendarD3WidgetPluginClass.copyWidget (plugin-base.js:39:21)
    at Object.copyWidget (plugin-handler.js:48:33)
    at widgetContainerClass.replaceWidget (widget-container.js:104:71)
    at _postChangeUpdates (editor.actions.js:607:21)
    at SetWidgetParametersAction._postChangeUpdates (editor.actions.js:659:5)
(anonymous) @ angular.js:15567
2plugin-calendar-d3-widgets.js:92  Uncaught TypeError: Cannot read properties of null (reading 'getTime')
    at plugin-calendar-d3-widgets.js:92:91
    at Array.sort (<anonymous>)
    at calendarD3Widget.render (plugin-calendar-d3-widgets.js:92:53)
    at calendarD3Widget.rescale (plugin-calendar-d3-widgets.js:51:18)
    at rescaleWidget (main-common.js:102:24)
    at rescale (edit-widgets.js:1039:25)
    at Object.resizeDashboard (edit-widgets.js:1054:9)
    at main-common.js:83:34
    at dispatch (jquery.js:5:10006)
    at y.handle (jquery.js:5:6789)

from chalk-it.

bengaid avatar bengaid commented on June 11, 2024

Ghiles, I pushed fixes.
Can you prepare a PR to main branch ?
Thanks

from chalk-it.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.