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

Syncing candlestick charts #76

Open
migore opened this issue Aug 29, 2021 · 1 comment
Open

Syncing candlestick charts #76

migore opened this issue Aug 29, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@migore
Copy link

migore commented Aug 29, 2021

Is your feature request related to a problem? Please describe.
I'm trying to use the sync functionality with a candlestick chart but the candlestick chart is not rendered. I can successfully display both charts without sync. If I try to sync two line_charts it works as well.

Describe the solution you'd like
The candlestick chart rendered and synced with the other charts.

Additional context
I'm using Sinatra.
Sample code that I'm using:

  def sync_candles_macd
    syncing_charts(chart: {toolbar: false}, height: 250, style: 'display: inline-block; width: 32%;') do
      line_chart(@macd_data, @macd_options) # these two line charts are rendered and synced
      line_chart(@macd_data, @macd_options) 
      candlestick_chart(@data, @data_options)
    end 
  end

The index template:

  template :index do
    <<~INDEX
      <script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
      <%= sync_candles_macd %>
    INDEX
  end

Note: TY for the awesome project! :)

@migore migore added the enhancement New feature or request label Aug 29, 2021
@styd styd added bug Something isn't working and removed enhancement New feature or request labels Aug 31, 2021
@styd
Copy link
Owner

styd commented Aug 31, 2021

If it works in apexcharts js and not in this gem, then it should be a bug.
Thanks for reporting this, I'll look into it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants