EventDrops icon indicating copy to clipboard operation
EventDrops copied to clipboard

Is there a way to make width of chart responsive?

Open mohammadfarooqi opened this issue 7 years ago • 3 comments

At the moment if we are on a mobile or on screen the width of the table is of set length.

Is there a way to make the width of the chart responsive? So if on mobile the view of the width gets shortened?

Does the above make sense?

Thanks

mohammadfarooqi avatar Jun 06 '18 20:06 mohammadfarooqi

Yes, it makes absolutely sense! Even if it is not yet implemented. At least, it doesn't refresh width when resizing window. Yet, if you refresh your browser, it should work out of the box.

jpetitcolas avatar Jun 07 '18 07:06 jpetitcolas

Thanks @jpetitcolas. Got it. Not an issue. Just a followup question. Is it possible to insert an image in the left side where the labels are instead of using text?

For example where the text says 'admin-on-rest' I'd like a svg/png icon? Is that possible?

image

mohammadfarooqi avatar Jun 07 '18 13:06 mohammadfarooqi

Currently not. But that's a nice addition (too much to be done! (-:). Can you create a separate issue for a better follow up?

As a reference, here is related part of code: https://github.com/marmelab/EventDrops/blob/master/src/dropLine.js#L45-L51

jpetitcolas avatar Jun 08 '18 06:06 jpetitcolas