All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.gatling.highcharts.series.ScatterSeries.scala Maven / Gradle / Ivy

There is a newer version: 3.13.1
Show newest version
/**
 * Copyright 2011-2016 GatlingCorp (http://gatling.io)
 *
 * Licensed under the Gatling Highcharts License
 */
package io.gatling.highcharts.series

import io.gatling.core.stats._

class ScatterSeries(name: String, data: Iterable[IntVsTimePlot], color: String) extends Series[IntVsTimePlot](name, data, List(color)) {

  def elements: Iterable[String] =
    if (data.isEmpty) List("[]")
    else data.map { plot => s"[${plot.time},${plot.value}]" }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy