chartjs no rendering #2544
Replies: 9 comments
-
Hi, Your code looks valid, but I'm not really sure if the Also, when you say "rendering is blank", do you ensure there is no rendered DOM, or it's just visually? |
Beta Was this translation helpful? Give feedback.
-
I changed the value from 300 to 800, noway.
|
Beta Was this translation helpful? Give feedback.
-
Do you see any error in the console ? Is Stmulus running as expected ? |
Beta Was this translation helpful? Give feedback.
-
@smnandre Hi. |
Beta Was this translation helpful? Give feedback.
-
I'm following only some example from Symdony website, you Symfony UX. Nothing works as expected. |
Beta Was this translation helpful? Give feedback.
-
On a clean installation, I'm able to display the chart from your example: ![]() Can you confirm us that you can see (or not) the following likes when opening the Console from DevTools: It's probably an issue with Stimulus that is not loaded on your page. If necessary, please follow installation steps from https://symfony.com/bundles/StimulusBundle/current/index.html#manual-installation-details Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hmmm , well. I installed webpack...etc. In my template if I set ; I don't see anything. In hello_controller.js
In bootstrap.js
It seems stimulus doesn't want to load. |
Beta Was this translation helpful? Give feedback.
-
If you use Webpack Encore, your // assets/bootstrap.js
import { startStimulusApp } from '@symfony/stimulus-bridge';
// Registers Stimulus controllers from controllers.json and in the controllers/ directory
export const app = startStimulusApp(require.context(
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
true,
/\.[jt]sx?$/
)); Then you must re-build your assets. |
Beta Was this translation helpful? Give feedback.
-
Well With a new Symfony 7.2.2 project with webpack-encore. It doesn't work. Maybe it's my fault. I don't know. I applied this :
|
Beta Was this translation helpful? Give feedback.
-
Hi
I'm using ux-chartjs and there is no way to render any charts.
No error in the console.
I'm using Symfony 7.2.2 and PHP 8.3.
I followed the document and the examples. Noway.
The rendering is blank.
Beta Was this translation helpful? Give feedback.
All reactions