Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set different color for column chart in anystock? #166

Closed
RubberArchind opened this issue Jan 17, 2021 · 6 comments
Closed

how to set different color for column chart in anystock? #166

RubberArchind opened this issue Jan 17, 2021 · 6 comments

Comments

@RubberArchind
Copy link

Hey i try to make something like this in anystock but the chart doesn't even appear

Here is my data

{
  "x": "2020-01-02",
  "val": 41350,
  "normal": {
    "fill": "green",
    "stroke": null,
    "label": {
      "enabled": true
    }
  }
}

and i just wrote this for that

chart.plot(1).column(bfData[1])

how can i get the same result in anystock

@Shestac92
Copy link

@RubberArchind
To enable individual styling in a Stock chart you should apply true flag to the chart constructor:

var chart = anychart.stock(true);

But note, that individual styling may reduce the chart performance if there are too many points with individual styling.

@RubberArchind
Copy link
Author

@Shestac92 thanks for the answer it's work. i have another question , can i simply change xScale mode to continous with chart.xScale().mode('continuous'); in anystock? this doesn't work when i try it

@Shestac92
Copy link

@RubberArchind
This function is not supported by AnyStock. The Stock xScale is already continuous (Ordinal or Scatter). But you can add gaps if it is required.

@RubberArchind
Copy link
Author

RubberArchind commented Jan 20, 2021

@Shestac92 i facing some issue with that

this what i got when using anychart
photo_2021-01-20_11-35-24

and this what i got when using another library
image

The line chart is broken there

@Shestac92
Copy link

@RubberArchind
It looks like the data for these two charts are different at the beginning of the series. The line series got points with dates before the first candlestick date. There's no other explanation for that. If you are sure that it is not expected behavior, please, contact support@anychart.com and provide the full chart configuration code and exactly the same data. We will review the code, reproduce the issue and provide a solution.

@RubberArchind
Copy link
Author

New update for my problem, i try to plot it with anychart again today and it's works like charm!!
i think i probably misstype somthing or i add a whitespace data before in that chart, thanks for your support @Shestac92

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants