Kaktana / kaktana-react-lightweight-charts

A simple react wrapper for the tradingview lightweight charts module
MIT License
106 stars 55 forks source link

i con't change line color bottomColor,TopColor ... it shows only default color (areaSeries) #3

Closed kamalshekar closed 4 years ago

kamalshekar commented 4 years ago

let options={

topColor:'#4682b4',
bottomColor: '#4682b4',
lineColor: 'rgba(21, 146, 230, 1)',
lineStyle: 0,
lineWidth: 3,
crosshairMarkerVisible: false,
crosshairMarkerRadius: 3,
layout: {
    backgroundColor: "#FFF",

  },

  grid: {
    vertLines: {
      visible: false,

    },
    horzLines: {
      visible: false,

    }
  },
  priceScale: {
    borderVisible: false,
    position: 'left',
    color:'red',

  },
  timeScale: {
    borderVisible: false,
    borderColor: "red",

  },
  crosshair: {
    mode: CrosshairMode.Normal
  },
}

return( <Chart options={options} darkTheme={true} addAreaSeries={add} autoWidth autoHeight /> )

AurelReb commented 4 years ago

Did you try to place these options on the areaSeries options?

areaSeries = {
  data: ...,
  options: <the area options go here>
}
AurelReb commented 4 years ago

I close this issue as it seems not to be one