Comments (3)
@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.
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
from evidence.
Maybe a link button/ or text with chevron in below graph
from evidence.
Related Issues (20)
- [Feature]: DataTable sort with groupBy
- [Bug]: Issues with Absolute Paths When Serving Website from Subdirectory HOT 1
- [Bug]: Column titles not autoformatted in charts
- [Bug]: Data Fetching HOT 1
- [Bug]: Build time variables do not HMR
- Source HMR Fails if the directory does not match the source name
- [Extension: Bug]: Frontmatter Syntax Highlighting Breaking HOT 2
- [Bug]: Tab state in URL is not respected
- [Bug]: Spurious(?) Error messages during build: Failed to pre-render columns Parser Error: syntax error at or near "SELECT" HOT 1
- [Bug]: "Home" Link in Breadcrumbs does not work HOT 1
- [Docs]: Core Concepts, Deployment etc. breadcrumbs have empty pages HOT 1
- [Feature]: Ability to use plugins in Leaflet maps
- Evidence Dev Tools
- [Feature]: Tab Styling for Button Group HOT 1
- [Feature]: Hide TOC and breadcrumbs from frontmatter
- [Bug]: sidebar frontmatter control not working
- [Bug]: Duplicate query names should produce a helpful error
- [Bug]: Query with name "new" causes unexpected error
- Pre Render Columns Error
- [Bug]: VSCode Incorrectly detects an old version of Node
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evidence.