Update Graph
This commit is contained in:
@@ -32,10 +32,18 @@ return function(name, basalt)
|
|||||||
return self
|
return self
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
setGraphSymbolColor = function(self, symbolColor)
|
||||||
|
return self:setGraphSymbolColor(nil, symbolColor)
|
||||||
|
end,
|
||||||
|
|
||||||
getGraphSymbol = function(self)
|
getGraphSymbol = function(self)
|
||||||
return graphSymbol, graphSymbolCol
|
return graphSymbol, graphSymbolCol
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
getGraphSymbolColor = function(self)
|
||||||
|
return graphSymbolCol
|
||||||
|
end,
|
||||||
|
|
||||||
addDataPoint = function(self, value)
|
addDataPoint = function(self, value)
|
||||||
if value >= minValue and value <= maxValue then
|
if value >= minValue and value <= maxValue then
|
||||||
table.insert(graphData, value)
|
table.insert(graphData, value)
|
||||||
@@ -75,6 +83,10 @@ return function(name, basalt)
|
|||||||
return self
|
return self
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
getGraphType = function(self)
|
||||||
|
return graphType
|
||||||
|
end,
|
||||||
|
|
||||||
setMaxEntries = function(self, value)
|
setMaxEntries = function(self, value)
|
||||||
maxEntries = value
|
maxEntries = value
|
||||||
self:updateDraw()
|
self:updateDraw()
|
||||||
|
|||||||
@@ -801,11 +801,11 @@ return {
|
|||||||
base.setValuesByXMLData(self, data, renderContext)
|
base.setValuesByXMLData(self, data, renderContext)
|
||||||
self:updateSpecifiedValuesByXMLData(data, {
|
self:updateSpecifiedValuesByXMLData(data, {
|
||||||
"maxEntries",
|
"maxEntries",
|
||||||
"type",
|
"graphType",
|
||||||
"minValue",
|
"minValue",
|
||||||
"maxValue",
|
"maxValue",
|
||||||
"symbol",
|
"graphSymbol",
|
||||||
"symbolColor"
|
"graphSymbolColor"
|
||||||
})
|
})
|
||||||
if(data["item"]~=nil)then
|
if(data["item"]~=nil)then
|
||||||
local tab = data["item"]
|
local tab = data["item"]
|
||||||
|
|||||||
Reference in New Issue
Block a user