-
Notifications
You must be signed in to change notification settings - Fork 52
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
ui-chart - change line thickness #1372
Comments
How have you configured the Point style and Radius for the line? |
Hi @Paul-Reed, It looks like ChartJs support a
That way each line in the chart can have its own thickness. However I 'think' currently you cannot simply pass that property yourself via the input message to a ui-chart node.
So it looks to me that the line width should be added to the config screen, and then use that while constructing the new ChartJs object. Don't think there is another way to solve or workaround your problem... I could try to add it to the config screen, but:
|
I guess your screen must be lower resolution that mine then, so the pixels are bigger. |
Thanks Bart
That's why I still have Flexdash dashboards! as I cannot replicate my existing charts. A better screenshot example of why I raise this now, see the bottom two charts; |
I can't remember all the discussions anymore, but perhaps the ui-chart node was not refactored yet for dynamic properties (via msg.ui_update) because ChartJs still needs to be replaced by another charting library. Which might be much more work if more ChartJs specific settings are being used in the ui-chart node. Black hole in my brain. |
@joepavitt, |
FYI there was another discussion related to this. Beside the line thickness, there are a number of other properties on series-level (e.g. line color, ...) that need to become configurable. Moreover depending on the chart type (line, scatter,...) other properties would become applicable. To manage all of this in a simple editableList is unfortunately not possible. So a new widget needs to be created. But that is a lot of work, and the core team members are too busy at the moment. |
Thanks for updating this @bartbutenaers - it's on the list (as are many many other things :D ) |
@joepavitt If ok, I assume it should be via ´msg.ui_update.series´? |
That would be a good opportunity to test the features, without initially exposing them in the UI or documentation. |
This will be involving a larger overhaul than i think you're realising on the front-end side too. It's not just as simple as having the widget available in the Node-RED Editor.
I'm not a fan of introducing temporary stop-gaps like that, once we support it, we're glued to that for a long time, and in this case, we're likely to have a property called I could be persuaded by something like |
Not sure why you think I am underestimating it. I did the proposal this morning for the dynamic properties, just because I am aware that the config screen changes are a lot of work. So I am not expecting it in the near future at all. And I wanted to give people like Paul a workaround via the input messages in short term... For me |
Thanks Bart
Maybe not possible now, but worth considering some time in the future would be to allow two y-axis's to be used |
I had a quick look now at the ui-chart node, but would like to get some thoughts from you guys. Question 1 - temporarily add an editableList?Currently the chart and series related properties are a bit mixed in the config screen. I tried to mark the series-level properties with a rectangle: I assume that the chart type (linear, bar, ...) should be configurable at series-level, to allow mixed charts to become possible? But if that is the case, I would have a contradiction between the the config screen (where there is only 1 type) and the input messages (where there is 1 type per series). So I was wondering if I could do it like this: I add an editableList on the config screen, where I show only the current settings per series (i.e. only the chart type and the line color). All other series-level configs (see list from paul) will only be possible via the input messages. And whenever in the future a new widget would be available, the editableList can be replaced by the new widget. But then at least the very basic configs (type and color) for each series are nicely grouped together in the config screen. Question 2 - chartConfigI first thought the Thanks for thinking out loud!! |
Hi @Paul-Reed, |
Hi Bart, sorry to hear that you are not getting much support with this, especially as you were volunteering to enhance this node in your own time as a community contributor. The tone of the responses so far suggest to me that opening up chart options is a low priority, and won't be addressed any time soon. But thanks for your enthusiasm. |
Hi @Paul-Reed, But the ui-chart node is a bit of a difficult one for me to get started, because there are a lot of feature requests are going on. If I could get some pointers how it should look like and behave, I could try to implement some features. Doesn't have to be a big bang because that would be a lot of analysis work for the the team, but step by step adding small features is good enough for me. That would even fit better in my free time... |
Just a general thought on what Bart mentioned about not every user wanting more and more configuration settings: since the FlowFuse dashboard’s philosophy is ‘the easy things should be easy, and the hard things should be possible,’ I wonder if a toggle switch for normal/expert mode might be worth considering. I’ve seen this approach work well in other software I use, both for beginner and advanced users, as it provides a balance of simplicity and flexibility. I’m not sure about the challenges or downsides that might come with implementing this, but it might be an interesting path to explore for db2.0. Just putting it out there! 🤷🏼♂️ |
Description
Adding a chart to a dashboard to be viewed on phones only, and it would be great if users could designate a line thickness for the chart.
Currently, the line looks as though it's been drawn with a marker pen, and looks even worse when using more that one line.
Using a template node, it's possible to set the line to 1px, which looks clean & sharp, but of course as discussed here, using a template node brings other problems.
By example, the image below shows the default ui-chart node (top), and a template node chart set to line width 1px (bottom).
Have you provided an initial effort estimate for this issue?
I have not provided an initial effort estimate
The text was updated successfully, but these errors were encountered: