clchart icon indicating copy to clipboard operation
clchart copied to clipboard

Some question about this awesome chart

Open miranos opened this issue 6 years ago • 5 comments

Hi sir !

First many thank's for this share and awesome work !

I have some questions for you:

  • Is it possible to show the latest price on a green background like in this image: https://user-images.githubusercontent.com/4250838/40221637-8c57e146-5aaf-11e8-9cdf-84b7e82ef83b.png

  • Is there a way to add dynamically new datas for it without loading all the data again ? Is it possible in the same why to update the latest value ?

  • How to show time bar in the bottom of candlestick chart ?

  • Can you share unminified version of clchart.js please ?

  • And finally, is it possible to load data from multiple CSV files ?

Thank you in advance for your answers !

miranos avatar Jul 29 '18 02:07 miranos

Is it possible to show the latest price on a green background like in this image:

export function setStandard (standard) {
  _systemInfo.standard = standard || 'china'
}

setStandard('usa')

coollyer avatar Dec 02 '18 14:12 coollyer

Is there a way to add dynamically new datas for it without loading all the data again ? Is it possible in the same why to update the latest value ?

It has been supported to add only new data and automatically generate Kline and timeline by passing in the latest now data.

coollyer avatar Dec 02 '18 15:12 coollyer

How to show time bar in the bottom of candlestick chart ?

cl.chart.def.js lines 108:

  axisX: {
    lines: 0, 
    display: 'none', // 'none' | 'both' | 'block', 'none' does not show, 'both': show both, 'block': displays a value for each block based on lines = display coordinates
    type: 'normal', // 'normal' | 'day1' | 'day5'
    format: 'date' // show format,date time datetime normal tradetime(9:30)
  },

display update both

coollyer avatar Dec 02 '18 15:12 coollyer

Can you share unminified version of clchart.js please

I don't understand. What do you need?

coollyer avatar Dec 02 '18 15:12 coollyer

And finally, is it possible to load data from multiple CSV files ?

Loading data does not belong to component category. There are many sources of data. clchart does not restrict people to obtain data in any way. We are building the backend and front-end of the special memory sequential database for securities, supporting various input and output data structures such as csv, json, array, and so on, which will be released together in time.

coollyer avatar Dec 02 '18 15:12 coollyer