methnen
Forum Replies Created
-
Not in the same chart object. Obviously you could maintain one chart with all data sets and then one for each page.
If you are comfortable with PHP you could conceivably use the
m_chart_chart_argsFilter hook to make what you want happen on a per page basis though by modifying the data passed to the charging library based on the page being viewed.https://github.com/methnen/m-chart/wiki/Action-and-filter-hooks#m_chart_chart_args
What you are attempting is definitely not something the plug-in currently supports by default.
Feel free to make a feature request on GitHub though and it’s conceivable it’ll be something I add at a later date via a shortcode attribute perhaps.
Hello!
Yes you would need multiple charts for that kind of use case.
The multiple sheets functionality is meant for multiple data sets being displayed in a single chart.
Forum: Plugins
In reply to: [M Chart] Can’t ActivateClosing for lack of reply from OP.
Good to hear. Thanks.
Forum: Plugins
In reply to: [M Chart] Can’t Activate@bibeldans not sure why I didn’t get an alert on this but I didn’t.
I’m unable to reproduce any issues with activating the plugin.
Can you provide any additional information about how your install of WP is setup that might help?
What version of WP? What theme? Etc…?
Forum: Plugins
In reply to: [M Chart] Axis grid frequencyYep you got it. I’d still give it a name so you know what the theme does:
<?php /** * Theme Name: Tick Interval */ return array( 'xAxis' => array( 'tickInterval' => '15', ), );Forum: Plugins
In reply to: [M Chart] Axis grid frequencyObviously there’s no GUI control for this, but you should be able to do it via a theme (if you’re using Highcharts) or a filter hook in either case.
https://github.com/methnen/m-chart/wiki/Action-and-filter-hooks#m_chart_chart_args
This hook allows you to change the chart arguments right before they are passed to either charting library. Chart.js/Highcharts.
The chart args are in the form of a PHP array that gets converted to a JS object that the charting library then uses.
Forum: Plugins
In reply to: [M Chart] Support for datetime series?Closing.
Forum: Plugins
In reply to: [M Chart] Height = 0Closing since there was no follow up with the OP.
Forum: Plugins
In reply to: [M Chart] The chart does not appear in a tab.So you got it taken care of? Sorry just had a moment to look at this again a moment ago.
But you’ve got a few solutions, jQuery can watch for you to click on the tab and then run that code for you. Or it might work if you just put it in the footer between two script tags which is potentially worth a try though a bit cludgy of a solution.
Forum: Plugins
In reply to: [M Chart] The chart does not appear in a tab.Hey I’ve seen similar issues to this before with Highcharts.
Essentially the chart library, in your case, Chart.js isn’t rendering the chart because it’s invisible on initial page load.
Sometimes the solution is to force Chart.js to render the chart. Since the chart object is there in the page still you can do that by calling the object like this ins one Javascript:
m_chart_chartjs_21108_1.chart.render();But in your case the charts are rendered but because they were invisible Chart.js seems to be giving each chart a height of 0.
That actually makes the fix pretty simple.
Just have some javascript that runs whenever the tabs are clicked that finds the canvas objects and gives them the height you actually want.
In jQuery that would look something like this:
jQuery( 'canvas.m-chart' ).css( 'height', '400px' );If you go to that tab and open your browser console paste that line of code in and hit return you’ll see both charts pop up like you expect them to look.
Forum: Plugins
In reply to: [M Chart] Height = 0@burotica Is there some place I can see this occurring?
Any particular set of themes/plugins that I could use to duplicate the issue?
If you’d like me to take a look at your install, happy to do so.
Feel free to email me at jamie AT methnen.com as well.
Forum: Plugins
In reply to: [M Chart] Support for datetime series?Hey, it doesn’t currently support datetime values. I don’t know for sure, but you might be able to turn that support on via a theme, I’ve admittedly never tried it but I have a memory of another user doing something like that.
That said, what I’ve always done is just include the empty date intervals in the data itself.
So as an example if I’ve got data for January and March but not February, I’d just add am empty cell in-between for February.
This results in a chart that’s properly spaced by the interval your data is using.
Forum: Reviews
In reply to: [M Chart] Best Charting PluginHmm… I’ll have to take a look.
Do you still have a theme and chart data you could send my way that I could experiment with?
Feel free to email me anything:
jamie AT methnen.com
Format though I can answer on since that essentially requires a function and those can’t be passed through a PHP array/object into the JS which is just a limitation of having the themes exist in PHP first.
I’ve spent some time thinking about it and just haven’t yet worked out a way to deal with it that doesn’t have it’s own issues.
Forum: Plugins
In reply to: [M Chart] Different settings for different languagesClosing this since the OP never replied.