LysandreJik commited on
Commit
d2889eb
1 Parent(s): fe8da28
Files changed (1) hide show
  1. index.js +3 -3
index.js CHANGED
@@ -112,7 +112,7 @@ const initialize = async () => {
112
  const retrievePipInstalls = async (libraryNames) => {
113
  const inferResponse = await fetch(`retrievePipInstalls?input=${libraryNames}`);
114
  const inferJson = await inferResponse.json();
115
- const colors = ['Lilac', 'Red', 'Blue', 'Orange', 'Green']
116
 
117
  console.log(inferJson)
118
  const labels = Array.from(inferJson['day']).map(e => new Date(e))
@@ -162,7 +162,7 @@ const retrievePipInstalls = async (libraryNames) => {
162
  const retrieveStars = async (libraryNames) => {
163
  const inferResponse = await fetch(`retrieveStars?input=${libraryNames}`);
164
  const inferJson = await inferResponse.json();
165
- const colors = ['Lilac', 'Red', 'Blue', 'Orange', 'Green']
166
 
167
  const labels = Array.from(inferJson['day']).map(e => new Date(e))
168
  const datasets = [];
@@ -212,7 +212,7 @@ const retrieveStars = async (libraryNames) => {
212
  const retrieveIssues = async (libraryNames) => {
213
  const inferResponse = await fetch(`retrieveIssues?input=${libraryNames}`);
214
  const inferJson = await inferResponse.json();
215
- const colors = ['Lilac', 'Red', 'Blue', 'Orange', 'Green']
216
 
217
  console.log(inferJson)
218
  const labels = Array.from(inferJson['day']).map(e => new Date(e))
 
112
  const retrievePipInstalls = async (libraryNames) => {
113
  const inferResponse = await fetch(`retrievePipInstalls?input=${libraryNames}`);
114
  const inferJson = await inferResponse.json();
115
+ const colors = ['#FF0000', '#00FF00', '#0000FF', '#FF00FF', '#FFFF00', '#0000FF', '#F090F0', '#90F0F0', '#F0F090']
116
 
117
  console.log(inferJson)
118
  const labels = Array.from(inferJson['day']).map(e => new Date(e))
 
162
  const retrieveStars = async (libraryNames) => {
163
  const inferResponse = await fetch(`retrieveStars?input=${libraryNames}`);
164
  const inferJson = await inferResponse.json();
165
+ const colors = ['#FF0000', '#00FF00', '#0000FF', '#FF00FF', '#FFFF00', '#0000FF', '#F090F0', '#90F0F0', '#F0F090']
166
 
167
  const labels = Array.from(inferJson['day']).map(e => new Date(e))
168
  const datasets = [];
 
212
  const retrieveIssues = async (libraryNames) => {
213
  const inferResponse = await fetch(`retrieveIssues?input=${libraryNames}`);
214
  const inferJson = await inferResponse.json();
215
+ const colors = ['#FF0000', '#00FF00', '#0000FF', '#FF00FF', '#FFFF00', '#0000FF', '#F090F0', '#90F0F0', '#F0F090']
216
 
217
  console.log(inferJson)
218
  const labels = Array.from(inferJson['day']).map(e => new Date(e))