Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Charts do not update when data is updated #1182

Open
3 tasks done
rezawikan opened this issue Feb 25, 2025 · 0 comments
Open
3 tasks done

Charts do not update when data is updated #1182

rezawikan opened this issue Feb 25, 2025 · 0 comments

Comments

@rezawikan
Copy link

Flux version

v2.0

Livewire version

v3.5

Tailwind version

v4.0.7

Browser and Operating System

Chrome & Mac OS

What is the problem?

I have several charts lined up, each with its own value. I set a filter for the chart, every time the filter changes. The value for the chart also changes. However, the line on the chart does not change, even though the data has been updated.

Code snippets

The data in $revenue will always change when the filter is changed.

// Sample
$revenue['records'] = [42,57,46,98,24,78,35,75];

<flux:card class="w-full overflow-hidden">
    <flux:subheading>Text</flux:subheading>
    <flux:heading size="xl">
        {{ $revenue['total'] }}
    </flux:heading>
    <flux:chart
        class="-mx-8 -mb-8 h-[3rem]"
        :value="$revenue['records']">
        <flux:chart.svg gutter="0">
            <flux:chart.line class="text-sky-200 dark:text-sky-400" />
            <flux:chart.area
                class="text-sky-100 dark:text-sky-400/30" />
        </flux:chart.svg>
    </flux:chart>
</flux:card>

How do you expect it to work?

The graph should update when the values ​​are updated.

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be closed if I haven't met the criteria above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant