Table of Contents

Class ServerSiderRenderChart

Namespace
GOptixLib
Assembly
GOptixLib.dll

服务端渲染图表

public class ServerSiderRenderChart
Inheritance
ServerSiderRenderChart
Inherited Members

Constructors

ServerSiderRenderChart(long, string, string, string, string)

构造函数

public ServerSiderRenderChart(long timeout, string url_root = "http://localhost:18080", string echart_url = null, string qrcode_url = null, string barcode_url = null)

Parameters

timeout long

超时时间

url_root string

服务器url

echart_url string

echart的url

qrcode_url string

QRCode的url

barcode_url string

Barcode的url

Methods

GetBarcodeSvg(string, string, string, int, int, bool, string, string, string, int, int, string, string, int)

获取 barcode svg

public string GetBarcodeSvg(string value, string out_file = null, string format = "auto", int width = 2, int height = 100, bool displayValue = true, string font = "monospace", string textAlign = "center", string textPosition = "bottom", int textMargin = 2, int fontSize = 20, string background = "#ffffff", string lineColor = "#000000", int margin = 10)

Parameters

value string
out_file string
format string
width int
height int
displayValue bool
font string
textAlign string
textPosition string
textMargin int
fontSize int
background string
lineColor string
margin int

Returns

string

GetEChartSvg(int, int, string, string)

获取 echart svg

public string GetEChartSvg(int width, int height, string option, string out_file = null)

Parameters

width int
height int
option string
out_file string

Returns

string

GetQRcodeSvg(string, int, int, string, string, string)

获取 qrcode svg

public string GetQRcodeSvg(string value, int width = 100, int height = 100, string dark = "#000000ff", string light = "#ffffffff", string out_file = null)

Parameters

value string
width int
height int
dark string
light string
out_file string

Returns

string