Closed bmanth60 closed 3 weeks ago
@bmanth60 is attempting to deploy a commit to the Themesberg Team on Vercel.
A member of the Team first needs to authorize it.
The changes in this pull request enhance the Chart.svelte
component by introducing a reactivity feature for the options
property. A reactive statement is added to update the chart's configuration dynamically whenever the options
prop changes. The overall structure of the component remains unchanged, with the initChart
function continuing to manage chart initialization and lifecycle management. This ensures that the chart reflects updates to its options without introducing significant alterations to existing logic.
File | Change Summary |
---|---|
src/lib/charts/Chart.svelte | Added a reactive statement to update chart options dynamically when options prop changes. |
Objective | Addressed | Explanation |
---|---|---|
Update chart options dynamically (Issue #1477) | β |
Chart.svelte
component to export the chart
instance, which is related to the reactivity feature introduced in the main PR that updates the chart options dynamically.updateOptions
to updateSeries
, which is relevant to the reactivity improvements made in the main PR regarding the handling of the options
property.π In the garden where options bloom,
A chart now dances, dispelling gloom.
With every change, it springs to life,
Reacting swiftly, avoiding strife.
Hops of joy in every update,
A chart that thrives, oh, isnβt it great! πΌπ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
I may be wrong here, since you would expect this action to handle this already? https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/charts/Chart.svelte#L29 arguably, the markup is not updating
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
flowbite-svelte | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Oct 31, 2024 10:30am |
Since https://github.com/themesberg/flowbite-svelte/commit/50c84cff293a190a57021bb76b0b7723b4c80768 solves this issue, I am going to close it
Closes #1477
π Description
This PR adds reactivity from the props to run the Apex charts update method
Status
β Checks
βΉ Additional Information
Summary by CodeRabbit
New Features
Bug Fixes