Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1016876 // Test XChart (OK)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 0K of libraries. Click here for Pure Java version (41L/1K).

1  
!7
2  
3  
lib 1400104 // XChart
4  
5  
import org.knowm.xchart.*;
6  
7  
p {
8  
  double[] xData = new double[] { 0.0, 1.0, 2.0 };
9  
  double[] yData = new double[] { 2.0, 1.0, 0.0 };
10  
11  
  XYChart chart = QuickChart.getChart("Sample Chart", "X", "Y", "y(x)", xData, yData);
12  
13  
  new SwingWrapper(chart).displayChart();
14  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016876
Snippet name: Test XChart (OK)
Eternal ID of this version: #1016876/2
Text MD5: 080bcb4f053ef4a9c7eaf68afbb759dc
Transpilation MD5: f4026fb57e4d5382a67e12005b4e197e
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-06 14:30:47
Source code size: 306 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 562 / 1185
Version history: 1 change(s)
Referenced in: [show references]