-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Milestone
Description
The default tooltip implementation is not encoding HTML correctly. This could cause a security issue where cross site scripting could be used to gather a user's data without their knowledge.
Using the bar chart:
http://c3js.org/samples/chart_bar.html
With data:
var chart = c3.generate({
data: {
columns: [
['data1">', 30, 200, 100, 400, 150, 250],
['data2', 130, 100, 140, 200, 150, 50]
],
type: 'bar'
},
bar: {
width: {
ratio: 0.5 // this makes bar width 50% of length between ticks
}
// or
//width: 100 // this makes bar width 100px
}
});