-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide return value on selected point/points #68
Comments
Hi @happyshows Currently I'm reworking legend and tooltip plugins to event / data-based approach. Usage pattern looks like: chart.select((node) => node.config.type === "ELEMENT.POINT")
.on("click", (dataRow) => ...)
.on("mouseover", (dataRow) => ...)
.on("mouseout", (dataRow) => ...) It looks like for drill down capabilities we need to introduce some kind of brushing also. Do you think it is good enough? Would like to know how you "see" the API. I'm ready to discuss API. Don't hesitate to share your thoughts on the topic. |
@vladminsky I think that would be great. Ref to the issue on the Here is the little bit of code that I suggested as a hack, but if fails with
|
@vladminsky I won't be the best person to comment on the best implementation details, as I'm more familiar with R than js. @hrbrmstr could provide more valuable input... |
@timelyportfolio & @happyshows I got your point guys. |
Shortcut for subscription described above: var chart = new tauCharts.Chart(cfg);
chart.renderTo('#target');
chart.on('elementclick', function (chartRef, e) {
console.log(e.data); // data behind an element
console.log(e.event); // click event object
console.log(e.element); // DSL node instance like ELEMENT.POINT The elementclick, elementmouseover, elementmouseout events are supported now |
great, look forward to putting it to use. Thanks so much @vladminsky for your responsiveness and diligence. |
Hi,
I'm wondering if tauCharts.js could provide such api so that hrbrmstr/taucharts could be able to call and fetch the values to R shiny instead of hack.
With this return value it would add more value to interactive analysis on R Shiny (drill down capabilities)
Would you please consider as feature improvement, thanks.
The text was updated successfully, but these errors were encountered: