Interactive Charts on Plotly for Website

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_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1171
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1094
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    831
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    879
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    453

Building Interactive Charts with Plotly for Websites

Plotly is a library for scientific and analytical visualizations: 3D charts, contour maps, statistical plots (box, violin, histogram), geographic maps. Used in data science applications and analytical dashboards.

Installation

npm install plotly.js-dist react-plotly.js
# Or lightweight version:
npm install plotly.js-basic-dist react-plotly.js

Basic Integration

import Plot from 'react-plotly.js';

function ScatterMatrix({ data }) {
  return (
    <Plot
      data={[{
        type: 'scatter',
        mode: 'markers',
        x: data.map(d => d.pageViews),
        y: data.map(d => d.conversions),
        text: data.map(d => d.pageName),
        marker: {
          size: data.map(d => Math.sqrt(d.revenue) / 10),
          color: data.map(d => d.bounceRate),
          colorscale: 'RdYlGn',
          showscale: true,
          colorbar: { title: 'Bounce Rate, %' }
        },
        hovertemplate:
          '<b>%{text}</b><br>Views: %{x}<br>Conversion: %{y:.1f}%<extra></extra>'
      }]}
      layout={{
        xaxis: { title: 'Page Views', type: 'log' },
        yaxis: { title: 'Conversion, %' },
        margin: { t: 20 },
        height: 400
      }}
      config={{ responsive: true, displaylogo: false }}
      style={{ width: '100%' }}
    />
  );
}

3D Surface Plot

function Surface3D({ zData, xLabels, yLabels }) {
  return (
    <Plot
      data={[{
        type: 'surface',
        z: zData,
        x: xLabels,
        y: yLabels,
        colorscale: 'Viridis',
        contours: {
          z: { show: true, usecolormap: true, highlightcolor: '#42f462', project: { z: true } }
        }
      }]}
      layout={{
        title: '3D Conversion Map',
        scene: {
          xaxis: { title: 'Hour of Day' },
          yaxis: { title: 'Day of Week' },
          zaxis: { title: 'Conversion, %' }
        },
        height: 500
      }}
      config={{ responsive: true }}
      style={{ width: '100%' }}
    />
  );
}

Statistical: Box Plot and Violin

function StatisticsPlot({ groups }) {
  const traces = groups.map(group => ({
    type: 'violin' as const,
    name: group.name,
    y: group.values,
    box: { visible: true },
    meanline: { visible: true },
    points: 'outliers'
  }));

  return (
    <Plot
      data={traces}
      layout={{
        title: 'Response Time Distribution by Service',
        yaxis: { title: 'Time, ms', zeroline: false },
        violingap: 0.3,
        height: 400
      }}
      style={{ width: '100%' }}
    />
  );
}

Subplots (Multiple Charts in Grid)

function DashboardSubplots({ salesData, trafficData, funnelData }) {
  return (
    <Plot
      data={[
        {
          type: 'bar',
          x: salesData.labels,
          y: salesData.values,
          name: 'Sales',
          xaxis: 'x',
          yaxis: 'y'
        },
        {
          type: 'scatter',
          mode: 'lines+markers',
          x: trafficData.dates,
          y: trafficData.sessions,
          name: 'Sessions',
          xaxis: 'x2',
          yaxis: 'y2'
        },
        {
          type: 'funnel',
          y: funnelData.stages,
          x: funnelData.values,
          name: 'Funnel',
          xaxis: 'x3',
          yaxis: 'y3'
        }
      ]}
      layout={{
        grid: { rows: 1, columns: 3, pattern: 'independent' },
        height: 400,
        showlegend: false
      }}
      style={{ width: '100%' }}
    />
  );
}

Lazy Loading for Heavy Bundle

const Plot = dynamic(() => import('react-plotly.js'), {
  ssr: false,
  loading: () => <ChartSkeleton />
});

Timeline

Scatter plots, 3D charts, statistical plots and subplots — 4–6 days.