Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@data-ui/radial-chart
Advanced tools
A package for radial-axis visualizations https://williaster.github.io/data-ui
demo at williaster.github.io/data-ui
This package exports declarative react <RadialChart />
s implemented with @vx which (for the time being) can be used to render both donut and pie charts depending on props. As demonstrated in the demo, in combination with @vx/legend and
@vx/scale these can be used to create re-usable radial charts.
See the demo at williaster.github.io/data-ui for more example outputs.
import { scaleOrdinal } from '@vx/scale';
import { LegendOrdinal } from '@vx/legend';
import { colors } from '@data-ui/theme';
import { RadialChart, ArcSeries, ArcLabel } from '@data-ui/radial-chart';
const colorScale = scaleOrdinal({ range: colors.categories });
export default () => (
<div style={{ display: 'flex', alignItems: 'center' }}>
<RadialChart
ariaLabel="This is a radial-chart chart of..."
width={width}
height={height}
margin={{ top, right, bottom, left }}
>
<ArcSeries
data={data}
pieValue={d => d.value}
fill={arc => colorScale(arc.data.label)}
stroke="#fff"
strokeWidth={1}
label{arc => `${(arc.data.value).toFixed(1)}%`}
labelComponent={<ArcLabel />}
innerRadius={radius => 0.35 * radius}
outerRadius={radius => 0.6 * radius}
labelRadius={radius => 0.75 * radius}
/>
</RadialChart>
<LegendOrdinal
direction="column"
scale={colorScale}
shape="rect"
fill={({ datum }) => colorScale(datum)}
labelFormat={label => label}
/>
</div>
);
Although pie 🍰 and donut 🍩 charts are frequently encountered, they are not the most effective visualization for conveying quantitative information. With that caveat, when used well they can effectively give an overview of population makeup which is an entirely reasonable use of these charts. We don't recommend using >7 slices for user readability.
v0.0.49
🏆 Enhancements
tooltipProps
to the <WithTooltip />
which will be passed to its TooltipComponent
(and adds example in demo) #79@vx/responsive
's new observer-based <ParentSize />
HOC #79<BoxplotSeries />
to enable more customization: containerProps
, boxProps
, outlierProps
, minProps
, maxProps
, medianProps
(https://github.com/hshoff/vx/pull/198) #80🐛 Bug fix
@vx/tooltip
to 0.0.148 for bounds bug fix #79Changes
- @data-ui/demo: 0.0.48 => 0.0.49 (private)
- @data-ui/event-flow: 0.0.48 => 0.0.49
- @data-ui/histogram: 0.0.48 => 0.0.49
- @data-ui/network: 0.0.48 => 0.0.49
- @data-ui/radial-chart: 0.0.48 => 0.0.49
- @data-ui/shared: 0.0.48 => 0.0.49
- @data-ui/sparkline: 0.0.48 => 0.0.49
- @data-ui/xy-chart: 0.0.48 => 0.0.49
FAQs
A package for radial-axis visualizations https://williaster.github.io/data-ui
The npm package @data-ui/radial-chart receives a total of 11,141 weekly downloads. As such, @data-ui/radial-chart popularity was classified as popular.
We found that @data-ui/radial-chart demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.