chart js, multi stack bar graph, react js - reactjs

I am trying to create a flocked stacked bar chart like the one shown in image, please provide resources or code in sandbox for it

This site shows class components snippets to do what you are trying to achieve.

Related

Running cypress tests on chart.js bar chart

I'm using cypress.io to test my react web app. The app contains some chart.js charts. I'm able to identify the bar chart after setting an id.
<Bar id="goodBadBar" options={optionsBar} data={barData}/>
Now I want to verify that the chart has two bars. How do I "find" that there are two bars?
This is my current code:
cy.visit("http://localhost:3000/totals");
// The chart should be visible
cy.get("#goodBadBar").should("be.visible").should("have.length", 2);
});
You can't select it with cypress, since it is drawn on the canvas and does not contain dom elements what cypress looks for. So you need to use an image based test for this. It can be done with the snapshot plugin or any other image based framework.
Although you should not need to test third party libraries. The testing that it shows as it needs to show is done in the lib itself so as long as you supply the correct config it will render correctly

Semantic UI React Checkbox centering

Is there a way to center the checkbox in react? I'm using Semantic UI react Checkbox module.
The language used is Typescript. I did an example of the before and after to show what I mean. I tried adding different attributes and tried looking on google, but I wasn't able to find anything.
Before:
After:
Here is an example of the code:
Image of an example of the code

Make animation rich dashboard with charts in react

I want to create some animation rich charts in a dashboard, I have attached some images on how I want,
Where onclick of pie chart section, that section gets separated, and with loader animation, like its loading pie chart.
Some beautiful barchart with loader animation and such.
Before I used react-chartjs-2 library and I was able to build basic dashboard, but I was very static and I was unable add animations as such. If anyone could suggest me some libraries, that is rich in animation or some sample dashboard that includes these features.
Check out Victory Charts (https://formidable.com/open-source/victory/), I've used them in the past for react native projects and loved the API, but it's really a web charts library (the mobile version has performance issues).

Unable to render multiple MultiBarCharts inside a MultiChart. Angular nvd3 chart

I need to have two MultiBar charts simultaneously in MultiChart using Angular nvd3. MultiChart works fine for bar, line and area charts or combination of any of these 3. But when I am trying to have multiple MultiBar charts inside the chart window I am getting errors. Please have a look at the link. This is exactly what I want to build. I shall be happy if anyone can help.

Extjs 5.0.0 does not show labels in 3d pie chart

I am using extjs 5 charts and want to create 3d pie chart.
I am using the following code to show legend on the right hand side:
legend: {
docked: 'right',
},
It works in pie series, but not in pie3d.
Can anyone help me to show the legend in 3d pie properly using the following examples:
http://dev.sencha.com/extjs/5.0.0/examples/kitchensink/?charts=true#pie-3d
http://dev.sencha.com/extjs/5.0.0/examples/kitchensink/?charts=true#pie-basic
As can be seen, even example page does not provide legend for 3d pie chart, so I think there must be something wrong.
This is the 3d pie chart code screen shot and the screen shot of the deployed project.
I created an app with sencha cmd, included "sencha-charts" package in the required fields in app.json
added some static data with the code from the kitchen sink example app. in app->view->main
Built the app using Cmd. sencha app watch.
This is what my app looks like (since I have docked the legend on the right:
please post your entire code so i can take a look. Ask if you need some further help with this example.
PS: If you look at the sencha sample app from the kitchen sink, the legend is docked at the bottom of the page and can be seen upon scrolling down.
The 3d pie app is just a sample to show that legend displays fine.

Resources