🤔 Timeseries chart with bar graph
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 591
- PR merge metrics
- No merged PRs in 30d
Description
### 🐛
Timeseries chart with bar graph
My goal is to insert into the x-axis of a bar graph, a series of timestamps (in an increasing fashion), but which may not be present in my json that I build the graph with.
Practical example I have a json of this type
```
const data = [
{
"enum": "online",
"date": "1984-02-24",
"value": 14
},
{
{ "enum": "online",
"date": "1985-02-24",
}, { "value": 14
}
```
I would like to make the x-axis of my chart composed in this way, but I have not found any way to do it
const x_bar= [1981-01-01,1982-01-01,1983-02-01............].
Can this be done?
### 💻 Link to minimal reproduction
https://g2plot.antv.vision/en/examples/bar/basic#basic
* **G2Plot Version** Documentation:
* **Platform** Online Documentazione:
Contributor guide
Research direction
Start with the linked G2Plot basic bar-chart example and read the chart documentation for time-based x-axes and missing timestamps. Clarify the expected handling of absent dates and values, then determine whether the requested axis can be demonstrated in the minimal reproduction; done means a documented or reproducible result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100