Comments (4)
This reproduces if the fill colour of the area plot is set in rgba fromat. E.g. rgba(0, 0, 255, 0.2)
ExportToSVG of area plot addes hardcoded opacity(0.5) attribute.
The combination of rgba colour defeiniton and opacity causes grayscale in some SVG viewers.
from interactivedatadisplay.
According to SVG color specification: https://www.w3.org/TR/SVGColor12/#Color_syntax
The rgba format is not supported in SVG.
As IDD injects CSS color into SVG as is, this causes the issue,
from interactivedatadisplay.
The solution could be splitting IDD color into two SVG properties: 'fill' and 'fill-opacity'.
from interactivedatadisplay.
Yep!
I'm extending InteractiveDataDisplay.ColorPalette.colorFromString to support rgba format right now.
Will use this function to split the "transparent color" into color and opacity to set them in SVG.
from interactivedatadisplay.
Related Issues (20)
- Update getBoundingBox signature
- idd.umd.d.ts & TypeScript 3.0.1 HOT 1
- Scientific notation for axis labels HOT 1
- {text-align:center} CSS brakes the chart
- Angled labels doesn't seem to work on a labelled axis HOT 1
- Figure is misaligned if initialized being inside hidden div HOT 1
- Tilted labels should be centered
- tooltip appearence delay
- Map related code in base plot
- Axis Label pool is never cleared HOT 1
- Multiple calling of getGesturesStream causes memory leak and duplicate gestures to happen.
- SVG export of subplots in Firefox
- Vertical labels are not exported to SVG for chart export
- Legend export for Figure
- idd.umd dependencies HOT 3
- "jqueryui" vs "jquery-ui"
- Typo in iddUpper95 binding
- proper way of resizing an SVG plot?
- Boundary lines not working at zero
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from interactivedatadisplay.