Comments (3)
Ah, nevermind. (Plot).redraw() is what I needed.
from androidplot.
Holy crap... This has plagued me for Hours!!! Hours!.
I could load data when I launched the activity with the Plot but couldnt load a Series after that.
Why the heck wouldn't the plot redraw itself after adding a Series.?
In my case, I need to open a file and load the dataseries after the plot view has been loaded for a while and was blank..
from androidplot.
Why the heck wouldn't the plot redraw itself after adding a Series
The best way to think about it redraw is as a batching mechanism; you apply changes to the Plot and then commit them by invoking redraw.
The mechanism exists because it's inefficient and produces ugly visual effects to auto apply changes sequentially instead of all at once. Androidplot has no way of knowing whether you're adding one series or ten. The same expectation could be placed on any layout changes such as font or color changes, etc. If it were to redraw its self after each addition or layout change and multiple changes are made at once, the result would be ugly flickering / resizing effects instead of a single smooth update. It would also create synchronization headaches for certain kinds of multithreaded dynamic implementations and break many kinds of property animations.
from androidplot.
Related Issues (20)
- Reverse Y axis HOT 1
- Quickstart need an update HOT 2
- duplicate value for resource 'attr/borderColor' with config ''. HOT 1
- candlesticks are too large in widget HOT 1
- XYPlot in 1.5.7 doesn't show when swiping back in ViewPager2 HOT 3
- Need to eventListener for different SimpleXYSeries HOT 1
- Random crashes due to PixelUtils.init(Context) HOT 2
- renderMode attribute always sets to use_background_thread HOT 3
- figlib not available on mavenCentral (in contrast to jcenter) HOT 3
- setLinesPerRangeLabel() Doesn't Do What It Says HOT 5
- ConcurrentModificationException when using LineAndPointRenderer and calling plot.clear() HOT 1
- I dont have renderer.setBarWidth(num) method in BarChart HOT 1
- Pie chart are not clickable with large segment HOT 1
- How to add string in both and range and domian lables? HOT 1
- Plot not displayed with background thread if initial size is 0 HOT 1
- legends are overlapping for both horizontal or vertical diretion in Pie Chart
- IllegalArgumentException caused from com.androidplot.Plot$BufferedCanvas.resize (Plot.java:234) in Android 5.1 HOT 3
- Weird correlation between graph size and performance HOT 4
- Add new series and update the graph
- a little refactoring and upgrade version of gradle
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 androidplot.