Uploaded image for project: 'ChartJS Integration'
  1. ChartJS Integration
  2. CHARTJS-17

Ability to pass options in the macro content itself rather than as a macro parameter

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Fix
    • Major
    • 1.1.4
    • 1.1.2
    • None
    • None
    • Unknown

    Description

      The ChartJS library uses two main JavaScript objects: one for the data, one for the options. Currently, the ChartJS macro makes it possible to pass the options as a parameter. However, when dealing with complex options, the need to escape all the quotes makes the options not easy to read. Also, this way, it's not possible to pass functions (the JSON representation does not encompass functions). An improvement could consist in making it possible to pass both the data and the options in the macro content:

      {{chartjs}}
      [json data]
      ----
      [json options]
      {{/chartjs}}
      

      Attachments

        Activity

          People

            slauriere slauriere
            slauriere slauriere
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: