agiliq / django-graphos

Django charting made *really* easy.
http://agiliq.com/demo/graphos
BSD 2-Clause "Simplified" License
442 stars 98 forks source link

highchart tooltip useHTML does not work #121

Open seanlook opened 7 years ago

seanlook commented 7 years ago

BarChart:

        options={
        'tooltip': {
            'shared': True,
            'useHTML': True,
            'headerFormat': '<span style="font-size:10px">{point.key}</span><table>',
            'pointFormat': '<tr><td style="color:{series.color};padding:0">{series.name}: </td>'
                           '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
            'footerFormat': '</table>'
        },
    }

useHTML attribute does not work in html page. I saw '<' is escaped. After I remove 'cls=JSONEncoderForHTML' params from highcharts.py line:179 , it works.