0.0.40 • Published 6 months ago

@plotset/cli v0.0.40

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Plotset

How to use

Install the package with

  • step 1 npm uninstall -g cli-plotset
  • step 2 npm i -g @plotset/cli or sudo npm i -g @plotset/cli

Login

login on production (publish your chart on the main site https://plotset.com)

plotset login

login on stage (publish your chart on staging https://pss.pro.ai)

plotset login-stage

new template

plotset new

with this commend ploset generated template in current directory.

the template includes the following files (in src folder).

  • css(folder)
  1. Write the code css in this folder and import in src/css/main.css.
  2. You automatically have access to your class inside index.html.

  • js(folder)
  1. Write the code javascript in this folder and import in src/js/index.js.
  2. You must have this methods which we will discuss in the following.
methodwhen run this method in base plotset?required
init_handlerfirst time change data change col rel(bindings)true
transformDatafirst time change data change col rel(binding)false
change_config_handlerchange config(setting)true
resizeHandlerresize iframetrue

  • index.html
  1. Inside this file you can write html code and add external modules.
  2. Be sure to add module https://plotset.com/charts/js/base-cafedata/v1.0.0.js.

  • bindings.json

⋅⋅⋅ ⋅⋅


  • data.csv

default data template.


  • info.json

you must enter the name and category of the template in this file.


  • settings.json
  1. this file puts your template settings and inputs into poltset.com and allows you to change the settings.
  2. you must also enter the default value of the template settings in this file.

  • thumbnail.png

this is a preview of your template image on plotset.com.


publish

publish on production (https://plotset.com)

plotset publish-production  

publish on stage (https://pss.pro.ai). You don't need to update your template version for this.

plotset publish

enter template id if you want update your template or enter new if you have new template.

note: if exist templateId field in this file directoryTemplate/plotset.json The templateId is automatically read from there.

sample plotset.json

{
    "templateId": 102
}

API Global Methods and Variable

data

backupData

config

oldConfig

col_rel

width

height

init_handler

change_config_handler

transformData

resizeHandler

0.0.40

6 months ago

0.0.37

6 months ago

0.0.38

6 months ago

0.0.39

6 months ago

0.0.34

10 months ago

0.0.35

6 months ago

0.0.36

6 months ago

0.0.32

1 year ago

0.0.33

1 year ago

0.0.24

1 year ago

0.0.25

1 year ago

0.0.30

1 year ago

0.0.31

1 year ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.29

1 year ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago