Method: Axlsx::LineChart#node_name

Defined in:
lib/axlsx/drawing/line_chart.rb

#node_nameString

The node name to use in serialization. As LineChart is used as the base class for Liine3DChart we need to be sure to serialize the chart based on the actual class type and not a fixed node name.

Returns:

  • (String)


65
66
67
68
69
70
71
72
# File 'lib/axlsx/drawing/line_chart.rb', line 65

def node_name
  path = self.class.name
  if i = path.rindex('::')
    path = path[(i + 2)..-1]
  end
  path[0] = path[0].chr.downcase
  path
end