This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega/v5.json", | |
"background": "white", | |
"padding": 5, | |
"data": [ | |
{"name": "grid_store"}, | |
{"name": "cashflow_store"}, | |
{"name": "source_0", "values": [{"point_id_in":1,"t_in":-1,"zero_duration_in":false,"mort_rate_factor_in":3,"model_id":0,"input_cursor_id":1,"formula":"pv_premiums","value":94.84,"t_in_step_end":0,"A_keep_gte_0":true,"partition":"A","duration_n":0,"value_n":91.11563150937634,"t_in_mean":4.5},{"point_id_in":1,"t_in":-1,"zero_duration_in":false,"mort_rate_factor_in":3,"model_id":0,"input_cursor_id":1,"formula":"pv_premiums","value":94.84,"t_in_step_end":0,"A_keep_gte_0":true,"partition":"B","duration_n":0,"value_n":91.07068315793605,"t_in_mean":4.5},{"point_id_in":1,"t_in":-1,"zero_duration_in":false,"mort_rate_factor_in":3,"model_id":0,"input_cursor_id":1,"formula":"pv_premiums","value":94.84,"t_in_step_end":0,"A_keep_gte_0":true,"partition":"keep","duration_n":0,"value_n":91.07068315793605,"t_in_mean":4.5},{"point_id_in":1,"t_in":-1," |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
"description": "Google's stock price over time.", | |
"data": {"url": "data/stocks.csv"}, | |
"transform": [{"filter": "datum.symbol==='GOOG'"}], | |
"layer": [ | |
{"mark": {"type": "area", "fill": "orange"}}, | |
{ | |
"mark": { | |
"type": "area", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
"description": "Google's stock price over time.", | |
"data": {"url": "data/stocks.csv"}, | |
"transform": [{"filter": "datum.symbol==='GOOG'"}], | |
"layer": [ | |
{"mark": {"type": "area", "fill": "red"}}, | |
{ | |
"mark": { | |
"type": "area", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
"description": "Google's stock price over time.", | |
"data": {"url": "data/stocks.csv"}, | |
"transform": [{"filter": "datum.symbol==='GOOG'"}], | |
"mark": { | |
"type": "area", | |
"line": {"color": "darkgreen"}, | |
"fill": { | |
"x1": 0.1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
"description": "Google's stock price over time.", | |
"data": {"url": "data/stocks.csv"}, | |
"transform": [{"filter": "datum.symbol==='GOOG'"}], | |
"mark": { | |
"type": "area", | |
"line": {"color": "darkgreen"}, | |
"fill": { | |
"x1": 0.1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
"title": "Seattle Weather, 2012-2015", | |
"data": { | |
"url": "data/seattle-weather.csv" | |
}, | |
"vconcat": [ | |
{ "width": 600, | |
"height": 300, | |
"layer":[{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega/v4.json", | |
"width": 500, | |
"height": 200, | |
"autosize": "none", | |
"signals": [ | |
{ | |
"name": "whichPoint", | |
"on": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega/v5.json", | |
"width": 400, | |
"height": 400, | |
"signals": [ | |
{ | |
"name": "increase", | |
"on": [{"events": "rect:click", "force": true, "update": "datum"}] | |
} | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"facet": {"column": {"field": "duration", "type": "nominal"}}, | |
"spec": { | |
"encoding": {"x": {"field": "bin_i", "type": "ordinal"}}, | |
"layer": [ | |
{ | |
"mark": {"type": "bar", "size": 2}, | |
"encoding": { | |
"y": {"field": "min", "type": "quantitative"}, | |
"y2": {"field": "max"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this is https://github.com/declann/calculang-miscellaneous-models/blob/main/models/pi/nilakantha-series_esm/cul_scope_0.mjs | |
// but with changes described | |
// so that it runs on numcalc.com (QuickJS) | |
// with arbirary \digits settings (e.g. \digits 100) | |
// Ensure in numeric (not algebraic mode) | |
// CHANGES: | |
// replaced res = 0 with res=0.0 and 4 by 4.0 | |
//pi_approximation({terms_in:2000000})-PI |
NewerOlder