Skip to content

Commit da6e173

Browse files
committed
Cleanup copied code
1 parent 0796994 commit da6e173

1 file changed

Lines changed: 1 addition & 22 deletions

File tree

src/App.js

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,51 +21,37 @@ function App() {
2121
"/": {
2222
label: "Hello World",
2323
text: "Demonstrates a simple chart of static data",
24-
info: "Simplest demo, just a ZingChart instance with static data from a constant JavaScript object.",
2524
file: "Simple.js",
26-
code: "",
2725
},
2826
"/module_chart": {
2927
label: "US Map",
3028
text: "Demonstrates explicitly importing ZingChart modules",
31-
info: "In order to display a map, we need to import additional ZingChart modules containing the mapping code and specific map data. In this example we also use React state for the configuration (although we're not changing the state).",
3229
file: "ModuleChart.js",
33-
code: "",
3430
},
3531
"/module_drag": {
3632
label: "Interaction",
3733
text: "Demonstrates interacting with a chart to change data",
38-
info: "Here we obtain a React reference to the ZingChart instance and load the dragging module so we can interact with the data in a bar chart. When a drag operation completes we access the chart data and use it to update the 'Goals met' text above the chart.",
3934
file: "ModuleDrag.js",
40-
code: "",
4135
},
4236
"/dynamic": {
4337
label: "Reconfiguring",
4438
text: "Demonstrates modifying the configuration of an existing chart",
45-
info: "In this example we create an interval timer to periodically update the state object containing the ZingChart's configuration in order to change the data being displayed.",
4639
file: "Dynamic.js",
47-
code: "",
4840
},
4941
"/events": {
5042
label: "Events",
5143
text: "Demonstrates responding to chart events",
52-
info: "This demo shows how we can listen to ZingChart events and log the events to a text area elsewhere on the page. Point to one of the nodes on the plot to see its details appear in the log.",
5344
file: "Events.js",
54-
code: "",
5545
},
5646
"/methods": {
5747
label: "Methods",
5848
text: "Demonstrates using a reference to a ZingChart element to invoke methods on it",
59-
info: "Here we obtain a React reference to the chart and use it to invoke a method (in this case, adding an additional dataset).",
6049
file: "Methods.js",
61-
code: "",
6250
},
6351
"/license": {
6452
label: "Multiple Plots",
6553
text: "Demonstrates setting the license key and performance flags on the ZingChart object, as well as multiple plots",
66-
info: "In this demo we obtain the zingchart instance when we import zingchart/es6 so we can set some configuration options on it, such as the license key. This demo also shows multiple plots on one chart.",
6754
file: "License.js",
68-
code: "",
6955
},
7056
};
7157

@@ -99,14 +85,7 @@ function App() {
9985
exact
10086
path={path}
10187
key={index}
102-
element={
103-
<>
104-
<h3>{mod.text}</h3>
105-
<a className="App-source-button" href={mod.code}>
106-
View source on Github
107-
</a>
108-
</>
109-
}
88+
element={<h3>{mod.text}</h3>}
11089
/>
11190
))}
11291
</Routes>

0 commit comments

Comments
 (0)