Skip to content

markpluslabs/markplus-charts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MarkPlus Charts

MarkPlus Charts is a versatile library for generating charts in SVG format. It works seamlessly in both browser and server-side environments, without relying on the DOM or Canvas, making it lightweight and highly adaptable.

Philosophy

This library aims to offer features comparable to Mermaid and Chart.js, but without relying on the DOM or Canvas.

Why?

While I appreciate the capabilities of Mermaid and Chart.js, their heavy dependencies make them less suitable for server-side or Node.js environments. This inspired me to create a lightweight alternative that operates independently of browser-specific technologies.

Install

yarn add add markplus-charts

Usage

import { generate } from 'markplus-charts';

try {
  const svgStr = await generate('A -> B');
} catch(e) {
  console.log(e.message);
}

Chart syntax

Refer to syntax

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks