methnen
Forum Replies Created
-
Forum: Plugins
In reply to: [M Chart] Tooltip Dataset labels missingI think this is a bug on my end. Probably a result of the other fix. I need to make sure I’m testing for multiple situations I think.
I’ll take a look at this soon. Because yes, the plugin itself plugs into the char tooltip callback so I suspect my callback is overwriting your callback.
Forum: Plugins
In reply to: [M Chart] Custom stylingClosing due to lack of followup from OP.
Forum: Plugins
In reply to: [M Chart] Want to Add Margins or paddings.Closing due to lack of feedback from OP.
Forum: Plugins
In reply to: [M Chart] Help for axis and double dateI apologize. I somehow missed this question earlier.
Oooh, that’s a lot of data and I can see why it’s a lot of dates/tick marks. There are probably ways to deal with that inside of Chart.js but it would require customizing the output of the plugin. This is possible and there’s developer hooks for doing that sort of thing, but it’s outside the scope of the plugin itself.
The duplicated date issue was an issue with the tool tip output which has been fixed in the latest version.
Forum: Plugins
In reply to: [M Chart] How to change Data Labels Color?Closing due to lack of follow up from OP.
Forum: Plugins
In reply to: [M Chart] Chart Created but didn’t show in Gutenberg Shortcode BlogClosing since there’s been no follow up from the OP for awhile.
Forum: Plugins
In reply to: [M Chart] Want to Add Margins or paddings.Interesting, adding padding/margins is possible. Thought not always as straightforward as you might hope.
The place to start is the Chart.js docs:
https://www.chartjs.org/docs/latest/general/padding.html
https://www.chartjs.org/docs/latest/configuration/legend.html#legend-label-configuration
You’ll see most items do have a padding value you can apply though settings. You could apply these either through a filter hook or many times more easily via themes:
https://github.com/methnen/m-chart/wiki/Themes
https://github.com/methnen/m-chart/wiki/Action-and-filter-hooks#m_chart_chart_args
Forum: Plugins
In reply to: [M Chart] How to change Data Labels Color?Basically you have to convert a Chart.js value to a matching PHP array.
The Chart.js documentation is here:
https://www.chartjs.org/docs/latest/samples/information.html
If you find the thing you want to change I’m happy to help you get it formatted correctly if you have trouble, but I don’t have a ton of bandwidth for finding it and writing it myself from scratch right now.
Forum: Plugins
In reply to: [M Chart] Custom stylingAbsolutely.
You’d have to set it up a bit differently of course. You’d use the
m_chart_chart_argsfilter hook:https://github.com/methnen/m-chart/wiki/Action-and-filter-hooks#m_chart_chart_args
Forum: Plugins
In reply to: [M Chart] Change font family of the chartIt involves matching the structure of the Chart.js settings but using a PHP array. Here’s the Chart.js font documentation:
Forum: Plugins
In reply to: [M Chart] Custom stylingMy guess, is that you used one of the themes that gets updates via the WordPress update system. and didn’t use a child theme.
If you use a core them you expect to update relatively frequently then a child them is always a good idea as that way you can have your custom tweaks (like the M Chart Themes) in a spot that will never be overwritten by the WP update system.
Forum: Plugins
In reply to: [M Chart] Custom stylingWhere did you place the custom styles?
Those should always be in your theme or a separate plugin if you’re going the filter hook route.
Forum: Plugins
In reply to: [M Chart] Chart width and styling?The charts will take on the width of their container.
You’ll notice the chart is already place inside of a div with a unique ID and a class specific to the plugin charts. So you can just apply some CSS to that container.
Forum: Reviews
In reply to: [M Chart] No nonsense, light plugin for chartsThanks for the very nice review.
You could fairly easily force the charts to be proportionally responsive using a filter hook or probably even a theme. The way it currently works though was a conscious decision. The height being static makes it easier to keep a chart readable based on the data in the chart. In use, I found proportionally resizing the charts often resulted in an unreadable chart at mobile sizes.
I get you on the individual chart styling options, and it’s certainly possible to build something like that using a combination of something like Advanced Custom Fields and a filter hook on the chart args. I’ve done exactly this on a few occasions for custom installs. But it’s purposely out of the scope of the plugin as is.
I do have occasional other developers step in and help with things but as a single developer maintaining things I have to be pretty selective about the scope of the plugin to keep it something I can continue working on given it provides essentially no actual income for me.
Some better special character support is in the works. It’s something I had in the Highcharts version but Chart.js isn’t as robust in some of its features which resulted in me having to drop it for a bit. I have a method worked out now I believe and hopefully can fit that into a future release soon.
There’s also a Gutenberg block coming that another developer kindly spent time on this year. It’s got some interface kinks that still need to get worked out but it’ll be a big addition and a frequent feature request.
Forum: Plugins
In reply to: [M Chart] Chart Created but didn’t show in Gutenberg Shortcode BlogHey, I’d be happy to take a look at what might be happening.
However, I have many users using the shortcode block and it works fine and I just verified myself that this is the case.
It’s more likely that something in the site’s front end is conflicting with the chart rendering.
One thing you could try is seeing if switching to iframe embeds (it’s in the M Chart Settings panel) makes things work better. Sometimes this can help when there’s a JS conflict in the page.