tremor icon indicating copy to clipboard operation
tremor copied to clipboard

feat: Add forecast

Open mbauchet opened this issue 1 year ago • 2 comments

Description Adding a forecast line to LineChart (and AreaChart). New properties:

  • forecastCategories that works like categories but for the forecast datas (Allows different label than default datas). It can also have multiple forecast lines for one data by passing an array of categories
  forecastCategories: ["Sales Forecast", "Successful Payments Forecast"] //for single forecast line by category

  forecastCategories: [["Sales Forecast Max", "Sales Forecast Min"], ["Successful Payments Forecast Max", "Successful Payments Forecast Min"]] //for two forecast lines by category

  • forecastLineStyle that allow you to change the style for the forecast line (solid, dashed, dotted)

Related issue(s) #572

What kind of change does this PR introduce? (check at least one)

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New Feature (non-breaking change which adds functionality)
  • [ ] Refactor
  • [ ] Build-related changes
  • [ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

  • [ ] Yes
  • [x] No

If yes, please describe the impact and migration path for existing applications:

How has This been tested? Using StoryBook

Screenshots (if appropriate): Capture d’écran 2023-07-23 à 22 26 53

The PR fulfills these requirements:

  • [ ] It's submitted to the main branch
  • [x] When resolving a specific issue, it's referenced in the related issue section above
  • [x] My change requires a change to the documentation. (Managed by Tremor Team)
  • [ ] I have added tests to cover my changes
  • [x] Check the "Allow edits from maintainers" option while creating your PR.
  • [x] Add refs #XXX or fixes #XXX to the related issue section if your PR refers to or fixes an issue.

mbauchet avatar Jul 23 '23 20:07 mbauchet

@severinlandolt any plans of adding this into the coming releases?

gondar00 avatar Aug 26 '23 09:08 gondar00

Any update on this PR? ANy plan to merge ?

nextjs-tsadei avatar May 27 '24 14:05 nextjs-tsadei