Closed MaximumCrash closed 4 years ago
@as-dr
@as-dr requested I implement a new type of circular infographic that would better represent the data instead of chartjs's dougnutchart.
Breaking change is defined as "A fix or feature that would cause existing functionality to change."
Visual comparison to what @as-dr provided.
Circle Chart can be found in modules/stats/basic.js. It takes 2 props:
You'll see the container for it
const CircleChartContainer = ({className, children}) => ( <div className={className}> <div className="fill"> {children} </div> </div> );
and the exported styled component of that container below it
export const CircleChart = styled(CircleChartContainer)` width: ${({radius}) => radius ? radius : "217"}px; height: ${({radius}) => radius ? radius : "217"}px; background: var(--highlight-color--makerorange); position: relative; border-radius: 100%; display: flex; align-items: center; justify-content: center; & .fill { width: ${({fillAmount}) => fillAmount ? fillAmount : "0"}%; height: ${({fillAmount}) => fillAmount ? fillAmount : "0"}%; background: var(--highlight-color--makerteal); border-radius: 100%; } `
Attention (CC)
@as-dr
Summary of changes
Motivation & Context
@as-dr requested I implement a new type of circular infographic that would better represent the data instead of chartjs's dougnutchart.
Types of changes
Does this introduce a breaking change?
Breaking change is defined as "A fix or feature that would cause existing functionality to change."
Checklist:
How Has This Been Tested?
Visual comparison to what @as-dr provided.
Screenshots (if appropriate):
Further comments
Circle Chart can be found in modules/stats/basic.js. It takes 2 props:
You'll see the container for it
and the exported styled component of that container below it