MeetmeLeave / ng-canvas-gauges

Angular2 component wrapper for the canvas-gauges library written by @Mikhus(https://github.com/Mikhus/canvas-gauges).
MIT License
38 stars 23 forks source link

attr.highlights does not seem to work. #7

Closed ed-weatherford closed 7 years ago

ed-weatherford commented 7 years ago

I'm trying to dynamically set the highlights option via the attr.highlights and it does not seem to work. Can you take a look and let me know if you for address the issue?

Thanks, Ed

MeetmeLeave commented 7 years ago

Hi, I added the example of highlight attribute usage to the example project on the html template.

Use it like this:

highlights='[
            { "from": -50, "to": -30, "color": "rgba(0,255,0,.05)" },
            { "from": -30, "to": -20, "color": "rgba(255,255,0,.25)" },
            { "from": -20, "to": -10, "color": "rgba(255,30,0,.35)" },
            { "from": -10, "to": 0, "color": "rgba(255,0,225,.45)" },
            { "from": 0, "to": 50, "color": "rgba(0,0,255,.55)" }
        ]'