Skip to content

[BUG] Unable to parse color from object when using patterns (patternomaly.js) #4279

Description

@Irexistus

Expected Behavior

For the hover tooltip to show without throwing any errors when using a pattern as a background color with the help of patternomaly.js as suggested in the documentation at http://www.chartjs.org/docs/#chart-configuration-patterns

Current Behavior

Currently the tooltip fails to properly show and sort of soft-locks in place and the following error is presented in the console:

Uncaught Error: Unable to parse color from object {"shapeType":"dash"}

Possible Solution

It looks like a helper function to correct for the issue was a suggestion in #1323 but I'm unsure if it's a possible solution here.

Steps to Reproduce (for bugs)

  1. Set the background color for a dataset to a pattern.
  2. Try to hover over a point to show the tooltip

Example: http://codepen.io/anon/pen/ZKmVgo

Context

I'm trying to make use of patterns on my charts to aid colorblind individuals.

Environment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions