Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

color blur in echart

var columnProto = Highcharts.seriesTypes.column.prototype;

columnProto.axisTypes = ['xAxis', 'yAxis', 'colorAxis'];
columnProto.optionalAxis = 'colorAxis';
columnProto.colorKey = 'y';

Highcharts.wrap(columnProto, 'translate', function(proceed) {
    proceed.apply(this, Array.prototype.slice.call(arguments, 1));

    Highcharts.seriesTypes.heatmap.prototype.translateColors.call(this);
});

Highcharts.chart('container', {
    series: [{
        type: 'bar',
        data: [1, 2, 3, 4, 5, 6, 7, 8, 9]
    }],
    colorAxis: {
        minColor: '#c6e48b',
        maxColor: '#196127',
        min: 1,
        max: 9
    }
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery maximum value of an element by class 
Javascript :: void 0 js 
Javascript :: angular view not changing on model 
Javascript :: moment js formating to one day less using zulu time 
Javascript :: slide div on click angular 
Javascript :: document.elementsFromPoint 
Javascript :: display toggle jquery for few seconds 
Javascript :: js find :invalid inside div 
Javascript :: moment js days ago 
Javascript :: html and js integrate 
Javascript :: how to rmeove white space in a string with jquery 
Javascript :: changing CSS with JS, using a function - strips all CSS and re-adds classes passed by 2nd parameter - as an Array 
Javascript :: likedislike 
Javascript :: search fullname in angular 
Javascript :: es6 parameter destructuring nested object 
Javascript :: how to append response header in node in every request 
Javascript :: convert string or string array to object mongoose object id 
Javascript :: launch chrome in incognito and dev tools 
Javascript :: time ago function web 
Javascript :: editable pre input react 
Javascript :: check if string is json parsable 
Javascript :: Audio Stream from Server through Scoket 
Javascript :: nuxt js set background color of body 
Javascript :: event on trible click in js 
Javascript :: a7aad 
Javascript :: js get each pair of values from an array 
Javascript :: clear input field javascript 
Javascript :: loopover iterate elements by name js 
Javascript :: is element displayed js 
Javascript :: cd doesn’t work inside childProcess 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =