Coder Social home page Coder Social logo

Chart Drilldowns about evidence HOT 3 OPEN

ItsMeBrianD avatar ItsMeBrianD commented on August 16, 2024
Chart Drilldowns

from evidence.

Comments (3)

hughess avatar hughess commented on August 16, 2024 2

@kwongz this would be clicking on the chart itself - e.g., click on a line and it navigates to a page you specify.

Similar to the way links work in DataTable, where there is a link prop which accepts a column.

And the user populates a link in their SQL.

So the dataset might be:

date         |   sales  |   link
2024-01-01   |   1400   |   '/sales-detail/2024-01-01'
2024-01-02   |   2400   |   '/sales-detail/2024-01-02'
2024-01-03   |   1500   |   '/sales-detail/2024-01-03'
2024-01-04   |   1700   |   '/sales-detail/2024-01-04'
2024-01-05   |   1900   |   '/sales-detail/2024-01-05'

In the chart:

<LineChart
   data={sales_data}
   x=date
   y=sales
   link=link
/>

from evidence.

kwongz avatar kwongz commented on August 16, 2024

@hughess @archiewood

I was curious if the idea was for the link prop addition, do we want a link button (maybe below the graph), or the user to click the graph to activate the link?

Haven't looked into it yet, but concerns with the graph being clicked may affect the ability to interact with other graph components

e.g hovering over line
image

from evidence.

kwongz avatar kwongz commented on August 16, 2024

Maybe a link button/ or text with chevron in below graph
image

from evidence.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.