You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@licuido-ui/ui_bar-chart

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@licuido-ui/ui_bar-chart

A bar chart is a popular and effective data visualization tool used to represent categorical data with rectangular bars. Each bar's length or height corresponds to the value it represents, allowing for a quick comparison between different categories. Bar

1.0.1
latest
npmnpm
Version published
Maintainers
1
Created
Source

Bar Chart

A bar chart is a popular and effective data visualization tool used to represent categorical data with rectangular bars. Each bar's length or height corresponds to the value it represents, allowing for a quick comparison between different categories. Bar charts are particularly useful for displaying discrete data points and comparing the relative sizes or quantities of different groups or categories.

Author

  • @author Raslan raslan@crayond.co

Story Book Link to Slider

PlayGround

Try it have a fun codeBox

Installation

npm i  @licuido-ui/bar-chart

Image

alt text

Import component

import { BarChart } from '@licuido-ui/bar-chart';
<BarChart option={{}} series={[]} />

Image

alt text

Props

PropertyTypeDescriptionDefault Value
LineChartProps
classNamestringRepresents the class name for the LineChart component.''
sxSxPropsRepresents the style props for the LineChart component.{}
headerStyleSxPropsRepresents the style props for the header of the LineChart component.undefined
graphStyleSxPropsRepresents the style props for the graph in the LineChart component.undefined
graphComponentStyleSxPropsRepresents the style props for the LineChart component.undefined
optionsApexCharts.ApexOptionsRepresents the options for the ApexCharts.undefined
seriesApexAxisChartSeries | ApexNonAxisChartSeriesRepresents the series for the ApexCharts.[]
headerComponentstring | React.ReactNodeRepresents the header component for the LineChart.undefined
widthstring | numberRepresents the width of the LineChart component.'100%'
heightstring | numberRepresents the height of the LineChart component.'auto'

Option props

OptionDescriptionExample Value
chartObject containing the chart configuration, including the ID of the chart.{ id: 'basic-line', type: 'line' }
xaxisObject containing the configuration for the X-axis, such as categories for the chart.{ categories: [1991, 1992, 1993] }
strokeObject defining the curve of the line.{ curve: 'smooth' }
titleObject containing the title configuration for the chart.{ text: 'Line Chart' }
subtitleObject containing the subtitle configuration for the chart.{ text: 'Sample Subtitle' }
markersObject defining the size of the markers on the chart.{ size: 6, strokeWidth: 0 }
yaxisObject containing the configuration for the Y-axis, including the title of the Y-axis.{ title: { text: 'Values' } }
gridObject defining the grid configuration for the chart, including row colors and opacity.{ row: { colors: ['#f3f3f3', 'transparent'], opacity: 0.5 } }
dataLabelsObject defining whether data labels are enabled or not.{ enabled: false }
tooltipObject defining the configuration for the tooltip, including enabling it and setting the font size.{ enabled: true, style: { fontSize: '12px' } }

Sample Props

<BarChart
        options={{
          chart: {
            toolbar: {
              show: false,
            },
          },
          xaxis: {
            categories: [1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999],
            position: 'bottom',
            labels: {
              style: {
                colors: 'green',
              },
            },
          },
          yaxis: {
            labels: {
              style: {
                colors: 'green',
              },
            },
          },
          plotOptions: {
            bar: {
              borderRadius: 5,
              distributed: false,
              horizontal: false,
            },
          },
          tooltip: {
            enabled: true,
            style: {
              fontSize: '12px',
            },
            // Customize tooltip if needed
             custom: function ({ series, dataPointIndex }: any) {
              let tooltipContent = '<div style=“background-color: #fff; padding: 5px; border: 1px solid #E3E3E3;“>';
              series.map((singleSeries: any) => {
                tooltipContent += '<div>';
                tooltipContent += `<span>${singleSeries[dataPointIndex]}</span>`;
                tooltipContent += '</div>';
              });
              tooltipContent += '</div>';
              return tooltipContent;
            },
          },
          dataLabels: {
            enabled: false,
            style: {
              colors: ['black'],
            },
          },
          title: {
            text: 'Company',
            align: 'center',
          },
          subtitle: {
            text: 'policy',
            align: 'center',
          },
          grid: {
            row: {
              colors: ['#f3f3f3', 'transparent'],
              opacity: 0.5,
            },
          },
        }}
        series={[
          {
            name: 'Desktop',
            data: [30, 40, 45, 50, 49, 60, 70, 91, 100],
          },
          {
            name: 'PC',
            data: [40, 50, 65, 70, 89, 90, 95, 99, 110],
          },
        ]}
        width={500}
        height={300}
      />

FAQs

Package last updated on 08 May 2025

Did you know?

Socket

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.

Install

Related posts