WHc2pngServer

WHc2pngServer

new WHc2pngServer(optopt) → {Object}

Description:
  • 提供Highcharts設定檔(含數據)轉png圖服務

Source:
Example
import WHc2pngServer from 'w-hc2png'

let opt = {
    port: 9020,
    apiName: 'api',
}
WHc2pngServer(opt)
Parameters:
Name Type Attributes Default Description
opt Object <optional>
{}

輸入設定物件,預設{}

Properties
Name Type Attributes Default Description
port Integer <optional>
8080

輸入Hapi伺服器所在port,預設8080

apiName String <optional>
'api'

輸入http API伺服器網址的api名稱,預設'api'

Returns:

回傳通訊物件,可監聽事件open、error、clientChange、execute、broadcast、deliver,可使用函數broadcast

Type
Object