methnen
Forum Replies Created
-
Forum: Plugins
In reply to: [M Chart] Issue trying to update a chartI sent you the file. Let me know if ti doesn’t work.
Forum: Plugins
In reply to: [M Chart] A couple quick formatting questionsSo that’s where I was getting with the need to probably add a filter for something like this.
This is the one you’d want:
https://github.com/methnen/m-chart/wiki/Action-and-filter-hooks#m_chart_chart_args
It works real similar to how a theme works but since it doesn’t have to all be contained within an immediately returned array it’s more flexible in how you can modify the
$chart_argsarray.Your theme should have a functions.php file in it somewhere. That’s usually the most straightforward place to add something like this.
Forum: Plugins
In reply to: [M Chart] Issue trying to update a chart@tegazinho send me an email to:
jamie AT methnen.com
I have a file that may fix your problem. If it doesn’t then I’ll need to look into it more.
Forum: Plugins
In reply to: [M Chart] A couple quick formatting questionsYes the data labels plugin is already available. It’s how the Show Labels checkbox adds the values to the chart items:
https://methnen-dropshare.s3.amazonaws.com/pb-mbU47cUpUv.png
You could try overriding the default behavior of that via a theme but I can’t say off the top of my head if that would work for sure.
The other option would be adding a filter in your functions.php file of your theme and doing some more advanced filtering of the parameters before they get passed to Chart.js on the page.
Forum: Plugins
In reply to: [M Chart] A couple quick formatting questions1. https://www.chartjs.org/docs/latest/axes/#tick-configuration
Chart.js docs are helpful usually.
2. Can you elebarorate on what you mean exactly I’m not sure I understand.
3. Storing them in the theme was intended to be the way you store them without having to worry about updates removing it.
If you have a core theme that receives updates that you don’t control you should be using a child them that references the core one and put your Chart.js themes in there.
Forum: Plugins
In reply to: [M Chart] Adding € to chart valuesIt’s completely possible, how you do it depends on the charting library.
Highcharts has a prefix and suffix setting that you can use for this.
And the plugin will try to do it for you if the data has them in there.
With Chart.js its not as straightforward. I’ve made some move towards implementing something that would sort of replicate the Highcharts behavior but it hasn’t made it into the release version yet.
My recommendation in the meantime is to label the relevant axis so it’s clear the Units or Currency involved in values.
Forum: Plugins
In reply to: [M Chart] JS Error after saving: ChartDataLabels is not definedThis is a heads up to anyone else having this issue, another user contacted me and we were able to work out a fix. The permanent fix will go out with the next release but I can’t say when that will happen.
If you’re having this issue please contact me and I can pass you the fix over email.
I’ll leave this issue open until the next release is out.
- This reply was modified 4 years, 1 month ago by methnen.
Forum: Plugins
In reply to: [M Chart] JS Error after saving: ChartDataLabels is not defined@michelyweb is there a way I can see this issue in action?
Feel free to email more sensitive info to:
jamie AT methnen.com
Forum: Plugins
In reply to: [M Chart] Global font color Chart JSMarking as resolved.
Forum: Plugins
In reply to: [M Chart] Set data default visibility toggleI get you. But yeah, I’m not sure how I’d do that in a UI sense and one of my general goals is to keep the UI as straightforward as possible (though feature creep is inevitable over time of course).
Can you make this request as a feature request to the Github issues:
https://github.com/methnen/m-chart/issues
It’s similar but different from this issue:
https://github.com/methnen/m-chart/issues/107
Which you’ll notice I’ve also not figured out a good UI for yet.
Maybe a shortcode parameter?
Forum: Plugins
In reply to: [M Chart] Plain spreadsheet visualPaywall/Registered user stuff is very out of scope for what the plugin intends to provide. But I’m sure there’s gotta be a dozen or so plugins that provide some method to wrap content so that it’ll require a certain user type or whatever to see it.
Forum: Plugins
In reply to: [M Chart] Plain spreadsheet visual@genesis999 I’m a little confused.
There is no “pro” version of this plugin.
Are you asking if you can display a chart’s data set as a basic HTML table?
If that’s what you’re asking the answer is yes:
https://github.com/methnen/m-chart/wiki/chart-shortcode#html-table
Forum: Plugins
In reply to: [M Chart] Trigger animation in viewportI’m sure it probably is I’d look at the Chart.js docs and see if there’s something in there about that, but that’s well out of the scope of something I can afford to spend time on at this point.
Forum: Plugins
In reply to: [M Chart] Global font color Chart JSThe initial part sets the colors and point styles used. But that final to last lines of code overrides the title and other colors.
Forum: Plugins
In reply to: [M Chart] Global font color Chart JSHey @numbarias the best way to do that in the plugin is to create a theme that would override the default values.
See the docs on that here:
https://github.com/methnen/m-chart/wiki/Themes
To change the color of the title you’d want something like this:
<?php /** * Theme Name: Your Theme */ $theme = array( 'colors' => array( '#59a80f', '#9ed54c', '#c4ed68', '#e2ff9e', '#f0F2dd', ), 'points' => array( array( 'point' => array( // Circle 'pointStyle' => 'circle', ), ), array( 'point' => array( // Square 'pointStyle' => 'rect', ), ), array( 'point' => array( // Triangle 'pointStyle' => 'triangle', ), ), ), ); $theme['options']['plugins']['title']['color'] = 'red'; return $theme;