@milaboratories/graph-maker
TypeScript icon, indicating that this package has built-in type declarations

1.0.21 • Public • Published

Vue-component including graph settings interface and resulting rendered graph.

How to use:

<script setup lang="ts">
import { computed, ref } from 'vue';
import { useApp } from './app';
import { platforma } from '@platforma-open/milaboratories.graph-maker.model';
import { GraphMakerSettings } from '@milaboratories/graph-maker/dist/GraphMaker/types';
import { GraphMaker } from '@milaboratories/graph-maker';

const app = useApp();
const frameRef = app.model.outputs.pFrame;
const settings = ref<GraphMakerSettings>({ 
  chartType: 'discrete', 
  template: 'box',
  title: 'My graph'
});
</script>

<template>
    <graph-maker
      v-if="platforma.pFrameDriver && frameRef && settings"
      v-model="settings"
      :p-frame-handle="frameRef"
      :p-frame-driver="platforma.pFrameDriver"
    />
</template>

How to build locally:

npm install
npm run build

Readme

Keywords

none

Package Sidebar

Install

npm i @milaboratories/graph-maker

Weekly Downloads

290

Version

1.0.21

License

none

Unpacked Size

11.6 MB

Total Files

129

Last publish

Collaborators

  • pvyazankin
  • mike-ainsel
  • dbolotin_mi