Comments (2)
You can do this by overriding the draw
field in AreaUnderLine
. Like this, for example:
LinePlot.AreaUnderLine(draw = { path ->
drawPath(path, brush = Brush.verticalGradient(listOf(Color.Red, Color.Yellow)))
})
from plot.
To be fair, it would be great to have native support instead of having to override the draw
field. I am thinking of added Brush
as a field, so that the user can either provider a Color
or a Brush
for all the components.
This is going to be a breaking change if the client code is not parameterized, but it an easily fixable one. Adding to Milestone 0.2.0
from plot.
Related Issues (13)
- data reduction (Douglas Peucker) HOT 2
- Disable scroll HOT 1
- Add graph background color argument HOT 2
- Add option to draw curved lines HOT 2
- LineWidth is not synchronized to XAxisWidth HOT 1
- This library supports on Bar Chart and Pie Chart ? HOT 1
- Add option to round / scale YAxis intervals to "nice numbers" HOT 1
- Build file does not have the maven publishing code HOT 1
- Add option to scroll to end while adding new points
- Looking for the following functionality
- How do I initially load my graph at the end of the scroll instead of rendering from the start xAxis 0
- Seems not to work with one single value HOT 1
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 plot.