Interactive Charts on Nivo for React Application

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1215
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    852
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1043
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    823
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    815

Building Interactive Charts with Nivo for React Applications

Nivo is a React component library based on D3, with beautiful defaults and support for SVG and Canvas. Convenient because each chart type is a separate package — no need to load the entire library.

Installation (Only Needed Components)

npm install @nivo/line @nivo/bar @nivo/pie @nivo/heatmap @nivo/core

Line Chart

import { ResponsiveLine } from '@nivo/line';

function NivoLineChart({ data }) {
  const nivoData = [
    {
      id: 'Revenue',
      color: '#3b82f6',
      data: data.map(d => ({ x: d.date, y: d.revenue }))
    },
    {
      id: 'Target',
      color: '#f59e0b',
      data: data.map(d => ({ x: d.date, y: d.target }))
    }
  ];

  return (
    <div style={{ height: 350 }}>
      <ResponsiveLine
        data={nivoData}
        margin={{ top: 20, right: 120, bottom: 50, left: 70 }}
        xScale={{ type: 'time', format: '%Y-%m-%d', precision: 'day' }}
        xFormat="time:%d.%m.%Y"
        yScale={{ type: 'linear', stacked: false }}
        yFormat=" >-.0f"
        curve="monotoneX"
        axisLeft={{
          format: v => `${(v / 1000).toFixed(0)}k`,
          legend: 'Revenue (₽)',
          legendOffset: -60,
          legendPosition: 'middle'
        }}
        axisBottom={{
          format: '%d %b',
          tickValues: 'every 2 weeks'
        }}
        colors={{ scheme: 'paired' }}
        lineWidth={2}
        pointSize={4}
        enableArea
        areaOpacity={0.1}
        useMesh
        legends={[{
          anchor: 'bottom-right',
          direction: 'column',
          itemWidth: 100,
          itemHeight: 20
        }]}
        tooltip={({ point }) => (
          <div className="chart-tooltip">
            <strong>{point.data.xFormatted}</strong>
            <br />
            {point.serieId}: {Number(point.data.y).toLocaleString('en')} ₽
          </div>
        )}
      />
    </div>
  );
}

Bar Chart with Custom Colors by Value

import { ResponsiveBar } from '@nivo/bar';

function ConversionBarChart({ data }) {
  return (
    <div style={{ height: 300 }}>
      <ResponsiveBar
        data={data}
        keys={['conversion']}
        indexBy="page"
        margin={{ top: 10, right: 20, bottom: 60, left: 60 }}
        padding={0.4}
        valueScale={{ type: 'linear' }}
        colors={({ data }) => {
          if (data.conversion >= 5) return '#22c55e';
          if (data.conversion >= 2) return '#f59e0b';
          return '#ef4444';
        }}
        axisBottom={{ tickRotation: -45 }}
        axisLeft={{ format: v => `${v}%` }}
        label={d => `${d.value}%`}
        tooltip={({ data, value }) => (
          <div className="chart-tooltip">
            <strong>{data.page}</strong>: {value}% conversion
          </div>
        )}
      />
    </div>
  );
}

Calendar Heatmap

import { ResponsiveCalendar } from '@nivo/calendar';

function ActivityCalendar({ data }) {
  return (
    <div style={{ height: 200 }}>
      <ResponsiveCalendar
        data={data}
        from="2026-01-01"
        to="2026-12-31"
        emptyColor="#f3f4f6"
        colors={['#dbeafe', '#93c5fd', '#3b82f6', '#1d4ed8']}
        margin={{ top: 20, right: 20, bottom: 20, left: 20 }}
        yearSpacing={40}
        monthBorderColor="#ffffff"
        dayBorderWidth={2}
        dayBorderColor="#ffffff"
        tooltip={({ day, value }) => (
          <div className="chart-tooltip">{day}: {value} events</div>
        )}
      />
    </div>
  );
}

Timeline

4–5 types of Nivo charts with custom tooltips — 3–4 days.