Skip to content

Legend is drawn twice #54

@Mcpoowl

Description

@Mcpoowl

With the new ChartJS library, the chartLegend is drawn twice:

  1. according to the legend template (this will show below the widget)
  2. according to the chartJS legend (this will show above the widget)

image

Disabling the legend in the widget will draw only one legend, namely the legend from ChartJS itself.

In short, a few things:

  1. Two legends
  2. disable legend in widget will disable only one (the bottom, widget, one)
  3. rendering of widget legend is really messy.
  4. Using the widget legend to disable datasets, doesn't use the animation

In my opinion, the template should be deleted, and we should use the ChartJS default template, and let the showLegend boolean disable thát legend.

If that is the way to go, I'd like to see an attribute where I can set the font family, or automatically let it use the font from my application. It defaults to Helvetica now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions