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

Is it possible to create mixed charts using reports kit? #48

Open
parabrucha opened this issue Feb 13, 2019 · 1 comment
Open

Is it possible to create mixed charts using reports kit? #48

parabrucha opened this issue Feb 13, 2019 · 1 comment

Comments

@parabrucha
Copy link

I want to build a mixed chart inclusive of line chart and bar chart. Need help.
Thanks in advance.

@nsoseka
Copy link

nsoseka commented Jul 4, 2019

Hi, i looked through the documentation and didn't see such a possibility. But there are a few work arounds which can get you to do that.

  1. You can make the same query in each of the charts and have them render the information. This will mean several queries which will increase the load on the server, and also take some time because reportskit processes them sequentially. It is possible to log configure them to be run concurrently
ReportsKit.configure do |config|
  config.use_concurrent_queries = true
end

This has a downside that it increases the load on the server but you can handle that by configuring caching on the server so that subsequent request(only redis is supported for now) benefit from the cache

# config/initializers/reports_kit.rb

ReportsKit.configure do |config|
  config.cache_store = Redis.new(url: "redis://:[email protected]:6380/15")
  config.cache_duration = 10.minutes
end

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