File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,28 @@ def clone(self):
404
404
g .save ()
405
405
return g
406
406
407
+ def get_assessment_names (self ):
408
+ assessment_names = {
409
+ 'line1' : 'Orange line' ,
410
+ 'line2' : 'Blue line' ,
411
+ 'line1 label' : 'Orange line label' ,
412
+ 'line2 label' : 'Blue line label' ,
413
+ 'intersectionLabel' : 'Intersection label' ,
414
+ 'intersectionHorizLineLabel' :
415
+ 'Orange-Blue intersection horizontal' ,
416
+ 'intersectionVertLineLabel' : 'Orange-Blue intersection vertical' ,
417
+ 'x-axis label' : 'X-axis label' ,
418
+ 'y-axis label' : 'Y-axis label' ,
419
+ }
420
+
421
+ # TODO: extend possible rules for the various other graph types
422
+ if self .graph_type == 8 :
423
+ assessment_names .update ({
424
+ 'line3' : 'Green line'
425
+ })
426
+
427
+ return assessment_names
428
+
407
429
408
430
class JXGLine (models .Model ):
409
431
class Meta :
You can’t perform that action at this time.
0 commit comments