kyper-data / python-highcharts

A simple translation layer between Python and Javascript for Highcharts projects (highcharts, highmaps, and highstocks).
MIT License
393 stars 190 forks source link

Bubble size seems to be bugged, and minSize/maxSize does not work #59

Open EnisBldMove opened 5 years ago

EnisBldMove commented 5 years ago

I've noticed that bubble size seems to be bugged. In the example below, changing minSize and/or maxSize does not change anything. If we remove the 'bubble' property, and try to display bubbles with very close sizes (such as the example below), there is one that will be very tiny.

This works in Highcharts itself, so the problem seems to be in the library.


from highcharts import Highchart H = Highchart(width=850, height=400)

options = { 'chart': { 'type': 'bubble', 'zoomType': 'xy' },

   'bubble': {
        'minSize': 1,
        'maxSize': 10
 },

'title': {
    'text': 'Highcharts Bubbles'
},

}

data1 = [[97, 36, 79]] data2 = [[25, 10, 78]] data3 = [[47, 47, 77]]

H.set_dict_options(options) H.add_data_set(data1, 'bubble') H.add_data_set(data2, 'bubble') H.add_data_set(data3, 'bubble')

H