Scatter plot by VEGA

We have created attached scatter plot by VEGA.


The code what we use is as below (We concealed critical information):

{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
  "mark": { type:"point", filled: true },
  data: {
    url: {
      %context%: true
      %timefield%: ****
      index: ****-demo
      body: {
        size: 10000
        _source: ["Revolution.","Speed","name","date" ]
      }
    }
    format: { 
      property: "hits.hits" 
    }
  }
  transform: [{
    calculate: "toDate(datum._source['date'])"
    as: "time"    
  }]
 
  encoding: {
    x:{
      field: _source['Speed']
      type: quantitative
      axis: { title: "Speed[kn]" }
     }
    y: {
      field: _source['Revolution.']
      type: quantitative
      axis: { title: "Revolution. [rpm]"}
     }
     
    size: {value: 300}
    tooltip: [{
      field: "_source['date']",title:"date "
      },{
      field: "_source['Revolution.']",title:"Revolution. [rpm] "
      },{
      field: "_source['Speed']",title:"Speed [kn] "
      }
    ] 
    color: {
      field: _source.name
      type: nominal
      legend: {
        title:"name",
        }
    }
    shape: {
      field: _source.name
      type: nominal
    }
  }

}

At this moment we would like to put some function on it.
What we would like to add is
・Absolutely standard line of the data. It must be fixed permanently. It must not e effected by any changes such as data range or time stamp. Nothing can effect to the line.
・Fix range of X-axis and Y-axis. Keep the range as we set up no matter what happens.
Our ideal image is as below

Please advise how we can realize our requirements.

Thank you.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.