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

anychart-export-server

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anychart-export-server

[](https://anychart.com)

1.0.0-dev-preview-5
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

AnyChart - Robust JavaScript/HTML5 Chart library for any project

AnyChart Export Server

Installation and running

Installation

  • Ставим через npm
  • Ставим через git
  • Ставим зависимости: rsvf-convert, imagemagic

Running

  • Запускаем через консоль

Options

NameTypeDescription
portnumbertodo desc
output-dirstringто куда будем сохранять все файлы
disable-scripts-executingbooleanможно ли запускать скрипты

Tutorials

  • Running AnyChart Export Server on Digital Ocean
  • Running AnyChart Export Server on AWS S2
  • Running AnyChart Export Server on Microsoft Asure

Server API

Generate PDF report

todo: description

POST /pdf-report

Input

NameTypeDescription
file_namestringtodo desc
dataJSON, JavaScripthttp://pdfmake.org/index.html#/gettingstarted
data_typestringJSON, JavaScript
response_typestringfile, base64string or url

Example

todo

Curl

todo

Response

todo
todo

Generate vector image - PDF/SVG/PS

todo: description

POST /vector-image

Input

NameTypeDescription
file_namestringtodo desc
file_typestringPDF/SVG/PS
datastringJavaScript string, SVG string, JSON string or XML string
data_typestringscript, svg, json, xml
response_typestringfile, base64string or url
width??????
height??????
aspect-ratio??????
background??????

Example

todo

Curl

todo

Response

todo
todo

Generate raster image - PNG/JPG/TIFF

todo: description

POST /raster-image

Input

NameTypeDescription
datastringrequired JavaScript, SVG, JSON or XML
data_typestringrequired script, svg, json, xml
file_namestringtodo desc
file_typestringPNG/JPG/TIFF
response_typestringfile, base64string or url
background??????
border??????
blur??????
contrast??????
crop??????
frame??????
gamma??????
monochrome??????
negative??????
noize??????
quality??????

Example

{
  "file_name": "anychart.png",
  "data": "var chart = anychart.pie(); chart.data([10, 20, 8, 5, 12, 9]); chart.container('container'); chart.draw();",
  "data_type": "script",
  "response_type": "file"
}

Curl

todo

Response

HTTP/1.1 200 OK
Content-Type: image/png
todo
todo

Export as data file - CSV/XLSX (Excel)

todo: description

POST /data-file

Input

NameTypeDescription
file_namestringtodo desc
file_typestringCSV/XLSX
datastringCSV string
response_typestringfile, url

Example

todo

Curl

todo

Response

todo
todo

Get server status

Security recommendations

  • allow access origin
  • https
  • авторизация

System recommendations

  • рассказываем про аналог супервизора
  • рассказываем про рекомендованную мощность
  • рассказываем про логирование

CJK and Custom fonts

Рассказываем как сетапить фонты

Troubleshooting

Рассказываем что делать в проблемных случаях

  • как проверить что image magic или кто у нас там второй установлен
  • как провер курлом или чем нибудь еще что /status доступен
  • как понять что нужно ставить доп шрифты

Tests

Рассказываем как у нас устроены тесты

  • как запустить
  • как добавить свой

License

© AnyChart.com - JavaScript charts. AnyChart Export Server released under the Apache 2.0 License.

FAQs

Package last updated on 21 Jul 2017

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.