Home › forums › Using CanvasJS › Pie Charts taking up entire row/container in flexbox › Reply To: Pie Charts taking up entire row/container in flexbox
I’m having trouble running the updated sample project. When I attempt to run it with npm start, I get
“/Users/…/website/website/node_modules/.bin/webpack-dev-server: line 1: ../webpack-dev-server/bin/webpack-dev-server.js: No such file or directory”
When I pass the width value as a property of containerProps (in the original sample project), it does shrink the CanvasJS chart to half of each row, but it still does not wrap two charts onto the same row.
I noticed in the App.css file, you wrote “/* Please set the flexbox properties to the div in which chart-containers are present */”
I did set flexbox properties to the div that contains canvasjs-react-chart-container-* divs but it didn’t wrap them. I’m not sure where else to add the “chart” css properties
View post on imgur.com
Thank you again for your help so far!