Skip to content

Commit

Permalink
Merge pull request #90 from dovicsin/event-details
Browse files Browse the repository at this point in the history
Changed: set vizzu version to 0.9.x
  • Loading branch information
dovicsin authored Dec 14, 2023
2 parents 48d24ec + b74ae73 commit a3b6a89
Show file tree
Hide file tree
Showing 15 changed files with 1,638 additions and 2,350 deletions.
2 changes: 1 addition & 1 deletion docs/examples/proglangs/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ dataLoaded.then((data) => {

// Set a handler that prevents showing specific elements
chart.on('plot-marker-label-draw', (event) => {
if (event.data.text.split(' ')[0] < 5) event.preventDefault()
if (event.detail.text.split(' ')[0] < 5) event.preventDefault()
})
})
})
2 changes: 1 addition & 1 deletion docs/examples/usbudget/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ dataLoaded.then((data) => {

// Set a handler that prevents showing the year values that are not divisible by 5
chart.on('plot-axis-label-draw', (event) => {
const Year = parseFloat(event.data.text)
const Year = parseFloat(event.detail.text)
if (!isNaN(Year) && Year > 1950 && Year < 2020 && Year % 5 !== 0) {
event.preventDefault()
}
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/building_blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ events.
```javascript
vp.initializing.then((chart) => {
chart.on("click", (event) => {
alert(JSON.stringify(event.data))
alert(JSON.stringify(event.detail))
});
});
```
Expand Down
Loading

0 comments on commit a3b6a89

Please sign in to comment.