The Mudcat Café TM
Thread #171976   Message #4179738
Posted By: Jon Freeman
23-Aug-23 - 06:31 PM
Thread Name: DECLUTTER * Health/Home Ecologic-Innovation *2023
Subject: RE: DECLUTTER * Health/Home Ecologic-Innovation *2023
And its just been more charts for me. I took a break from my stuff to look at Google Charts which offers a vast array of charts and options. I struggled to work out what to put for the rows and columns for the JSON format I wanted to try for a couple of line charts but found it straightforward otherwise. Back to my stuff, I’ve produced a svg version of what I had (except the pie with a shadow to give a bit of a 3d look) as I thought scalable graphics would be nicer than the pngs. I found svg easy for the lines, circles and rectangles I wanted but producing paths for the pie slices was a bit tricky. A nice surprise for me was that you can embed <A> links in them. I’ve used that with the help of Bootstrap (when I finally got it to work…) to produce much quicker responses when the mouse hovers over a point or area on a chart. In the svg, for example for a rectangle on bar chart, all I need is:

<a title="[data to display] data-toggle="tooltip">
    <rect x="[start x]" y="[start y] width="[rect width] height="[rect height]" stroke = "black" fill="[bar color] ></a>

On to other things. I’ve developed a couple of pressure sores and the nurses have ordered a new mattress for me that should make getting pressure sores less likely. Dad is due some new equipment tomorrow or Friday but I don’t know what he’s getting or whether there are any plans to get him out of bed to sit in the living room. They are also supposed to be collecting the Sara Stedy. This was unsuitable for the space we have to manoeuvre in and, much to mum’s annoyance, has been a big unwanted item of clutter in the living room for months.