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

14
LINES

< > BotCompany Repo | #1016877 // XChart Test [Dyn Module, OK]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 0K of libraries. Click here for Pure Java version (4471L/29K).

!7

lib 1400104 // XChart

import org.knowm.xchart.*;

sclass XChartTest > DynModule {
  JComponent visualize() {
    double[] xData = new double[] { 0.0, 1.0, 2.0 };
    double[] yData = new double[] { 2.0, 1.0, 0.0 };
    XYChart chart = QuickChart.getChart("Sample Chart", "X", "Y", "y(x)", xData, yData);
    ret new XChartPanel(chart);
  }
}

Author comment

Began life as a copy of #1016876

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016877
Snippet name: XChart Test [Dyn Module, OK]
Eternal ID of this version: #1016877/2
Text MD5: e03ef2ca235546087778759f5d791a0d
Transpilation MD5: a0c77be31cdd69a930feebce4521852e
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-06 14:34:51
Source code size: 359 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 344 / 518
Version history: 1 change(s)
Referenced in: #1016878 - XChart RealTime Test [Dyn Module]