Skip to content

Radar new feature: fillColor depending on the area size#162

Closed
plus- wants to merge 1 commit into
chartjs:masterfrom
plus-:master
Closed

Radar new feature: fillColor depending on the area size#162
plus- wants to merge 1 commit into
chartjs:masterfrom
plus-:master

Conversation

@plus-
Copy link
Copy Markdown

@plus- plus- commented Jul 4, 2013

In picture:

chart1
chart2
chart3

Sample data (first dataset is used to force the bounds, second one is using the feature):

    var data = {
      labels: ['FWs', '3s', 'GIR', 'Ptts', 'PA'],
      datasets: [{
          fillColor: 'rgba(220,220,220,0)',
          strokeColor: 'rgba(220,220,220,0)',
          pointColor: 'rgba(220,220,220,0)',
          pointStrokeColor: '#fff',
          data: [0, 0, 0, 0, 100]
        }, {
          colorProgressive: true,
          colorMin: 'rgba(255, 0, 0, 0.5)',
          colorMax: 'rgba(0, 255, 0, 0.5)',
          pointStrokeColor: '#fff',
          data: []
        }
      ]
    };

@fulldecent
Copy link
Copy Markdown
Contributor

Could this pull request please be reworked for the latest release v1.0.1-beta.4

There has been a large refactor and the codebase is very much different than the new one.

It will probably be easiest to refork or git clone from scratch and reimplement the change.

Also, this item may already be fixed in the latest version. I am sorry this is a templated message, but may I ask you to check if it is already fixed, and if so to close the pull request.

@plus-
Copy link
Copy Markdown
Author

plus- commented Sep 9, 2014

Hmm, that was actually not a bug but a feature I did for a pet project (check the pics to get an idea, radar color change depending on surface size).

I'm closing it, maybe I'll do it on the new release version if I have time.

@plus- plus- closed this Sep 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants