Browse Source

fix actions

Ethosa 3 years ago
parent
commit
05b2405ac7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/nodesnim/core/chartdata.nim

+ 3 - 3
src/nodesnim/core/chartdata.nim

@@ -27,7 +27,7 @@ type
 proc newChartData*(data_name: string = "data", data_color: ColorRef = Color()): ChartData =
   ## Creates a new empty ChartData.
   runnableExamples:
-    var chart_data = newChartData()
+    var my_chart_data = newChartData()
   ChartData(x_axis: @[], y_axis: @[], data_name: data_name, data_color: data_color)
 
 proc newChartData*(x_length, y_length: int, data_name: string = "data",
@@ -38,7 +38,7 @@ proc newChartData*(x_length, y_length: int, data_name: string = "data",
   ## - x_length -- length of `x_axis`;
   ## - y_length -- length of `y_axis`.
   runnableExamples:
-    var chart_data1 = newChartData(5, 5)
+    var my_chart_data1 = newChartData(5, 5)
   result = newChartData(data_name, data_color)
   result.x_axis.setLen(x_length)
   result.y_axis.setLen(y_length)
@@ -51,7 +51,7 @@ proc newChartData*(x_data, y_data: seq[ChartDataValue],
   ## - x_data -- specified data for `x_axis`;
   ## - y_data -- specified data for `y_axis`.
   runnableExamples:
-    var chart_data2 = newChartData(@[1, 5, 2], @["10.10.2021", "10.11.2021", "10.01.2021"])
+    var my_chart_data2 = newChartData(@[1, 5, 2], @["10.10.2021", "10.11.2021", "10.01.2021"])
   ChartData(x_axis: x_data, y_axis: y_data, data_name: data_name, data_color: data_color)