Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
❄️ Solid support; Graph, Axis, Legend updates; Sticky Tooltip; Discord; and more inUnovis 1.5

A modular data visualization framework for React, Angular, Svelte, Vue, Solid and vanilla TypeScript or JavaScript

Get Started
Framework Independent

Framework Independent

Use with React, Angular, Svelte, Vue, Solid,
or without any UI framework.

Smooth

Smooth

We pay attention to how the library components look and how they react to data changes. Styles are customizable via CSS variables.

Built with Typescript

Built with Typescript

Unovis is built with Typescript and allows you to import individual component modules to reduce your app bundle size.

  • React
  • Angular
  • Svelte
  • Vue
  • Solid
  • TypeScript
  • Data
importReact,{ useCallback}from'react'
import{VisXYContainer,VisAxis,VisArea,VisXYLabels}from'@unovis/react'
import{ data, formats,DataRecord, getLabels}from'./data'


exportdefaultfunctionStackedArea():JSX.Element{
const labels=getLabels(data)
return(
<>
<VisXYContainerdata={data}height={'50vh'}>
<VisAreax={useCallback((d:DataRecord)=> d.year,[])}y={formats.map(g=>useCallback((d:DataRecord)=> d[g],[]))}/>
<VisAxistype='x'label='Year'numTicks={10}gridLine={false}domainLine={false}/>
<VisAxistype='y'label='Revenue (USD, billions)'numTicks={10}/>
<VisXYLabels
x={useCallback((d:DataRecord)=> labels[d.year]? d.year:undefined,[])}
y={useCallback((d:DataRecord)=> labels[d.year]?.value,[])}
label={useCallback((d:DataRecord)=> labels[d.year]?.label,[])}
backgroundColor={useCallback((d:DataRecord)=> labels[d.year]?.color??'none',[])}
clusterBackgroundColor="none"
clusterLabel={()=>''}
/>
</VisXYContainer>
</>
)
}

Companies using Unovis

F5 LogoF5 LogoNGIX LogoNGIX Logo

[8]ページ先頭

©2009-2025 Movatter.jp