func (cs ContinuousSeries) GetLastValues() (float64, float64) {
	return cs.XValues[len(cs.XValues)-1], cs.YValues[len(cs.YValues)-1]
}
GetLastValues gets the last x,y values.
package chart
import "fmt"
var (
	_ Series              = (*ContinuousSeries)(nil)
	_ FirstValuesProvider = (*ContinuousSeries)(nil)
	_ LastValuesProvider  = (*ContinuousSeries)(nil)
)
type ContinuousSeries struct {
	Name  string
	Style Style
	YAxis YAxisType
	XValueFormatter ValueFormatter
	YValueFormatter ValueFormatter
	XValues []float64
	YValues []float64
}
func (cs ContinuousSeries) GetName() string {
	return cs.Name
}
func (cs ContinuousSeries) GetStyle() Style {
	return cs.Style
}
func (cs ContinuousSeries) Len() int {
	return len(cs.XValues)
}
func (cs ContinuousSeries) GetValues(index int) (float64, float64) {
	return cs.XValues[index], cs.YValues[index]
}
func (cs ContinuousSeries) GetFirstValues() (float64, float64) {
	return cs.XValues[0], cs.YValues[0]
}