Skip to content

Commit

Permalink
Merge pull request #99 from vizzuhq/doc_proglangs
Browse files Browse the repository at this point in the history
documentation: fix event in proglang example
  • Loading branch information
veghdev authored Aug 15, 2024
2 parents cfa004c + 22ded37 commit 467fd94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples/proglangs/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ dataLoaded.then((data) => {

// Set a handler that prevents showing specific elements
chart.on('plot-marker-label-draw', (event) => {
if (event.detail.text.split(' ')[0] < 5) event.preventDefault()
if (event.detail.text.split('%')[0] < 5) event.preventDefault()
})
})
})

0 comments on commit 467fd94

Please sign in to comment.