public Can getExamples()

in valuetypes/vega/metamodel/src/main/java/org/apache/causeway/valuetypes/vega/metamodel/semantics/VegaValueSemantics.java [157:276]


    public Can<Vega> getExamples() {
        return Can.of(
                Vega.valueOf("{\n"
                        + "  \"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\",\n"
                        + "  \"data\": {\n"
                        + "    \"values\": [\n"
                        + "      {\"a\": \"C\", \"b\": 2},\n"
                        + "      {\"a\": \"C\", \"b\": 7},\n"
                        + "      {\"a\": \"C\", \"b\": 4},\n"
                        + "      {\"a\": \"D\", \"b\": 1},\n"
                        + "      {\"a\": \"D\", \"b\": 2},\n"
                        + "      {\"a\": \"D\", \"b\": 6},\n"
                        + "      {\"a\": \"E\", \"b\": 8},\n"
                        + "      {\"a\": \"E\", \"b\": 4},\n"
                        + "      {\"a\": \"E\", \"b\": 7}\n"
                        + "    ]\n"
                        + "  },\n"
                        + "  \"mark\": \"point\",\n"
                        + "  \"encoding\": {\n"
                        + "    \"x\": {\"field\": \"a\", \"type\": \"nominal\"},\n"
                        + "    \"y\": {\"field\": \"b\", \"type\": \"quantitative\"}\n"
                        + "  }\n"
                        + "}"),
                Vega.valueOf("{\n"
                        + "  \"$schema\": \"https://vega.github.io/schema/vega/v5.json\",\n"
                        + "  \"description\": \"A basic bar chart example, with value labels shown upon mouse hover.\",\n"
                        + "  \"width\": 400,\n"
                        + "  \"height\": 200,\n"
                        + "  \"padding\": 5,\n"
                        + "\n"
                        + "  \"data\": [\n"
                        + "    {\n"
                        + "      \"name\": \"table\",\n"
                        + "      \"values\": [\n"
                        + "        {\"category\": \"A\", \"amount\": 28},\n"
                        + "        {\"category\": \"B\", \"amount\": 55},\n"
                        + "        {\"category\": \"C\", \"amount\": 43},\n"
                        + "        {\"category\": \"D\", \"amount\": 91},\n"
                        + "        {\"category\": \"E\", \"amount\": 81},\n"
                        + "        {\"category\": \"F\", \"amount\": 53},\n"
                        + "        {\"category\": \"G\", \"amount\": 19},\n"
                        + "        {\"category\": \"H\", \"amount\": 87}\n"
                        + "      ]\n"
                        + "    }\n"
                        + "  ],\n"
                        + "\n"
                        + "  \"signals\": [\n"
                        + "    {\n"
                        + "      \"name\": \"tooltip\",\n"
                        + "      \"value\": {},\n"
                        + "      \"on\": [\n"
                        + "        {\"events\": \"rect:mouseover\", \"update\": \"datum\"},\n"
                        + "        {\"events\": \"rect:mouseout\",  \"update\": \"{}\"}\n"
                        + "      ]\n"
                        + "    }\n"
                        + "  ],\n"
                        + "\n"
                        + "  \"scales\": [\n"
                        + "    {\n"
                        + "      \"name\": \"xscale\",\n"
                        + "      \"type\": \"band\",\n"
                        + "      \"domain\": {\"data\": \"table\", \"field\": \"category\"},\n"
                        + "      \"range\": \"width\",\n"
                        + "      \"padding\": 0.05,\n"
                        + "      \"round\": true\n"
                        + "    },\n"
                        + "    {\n"
                        + "      \"name\": \"yscale\",\n"
                        + "      \"domain\": {\"data\": \"table\", \"field\": \"amount\"},\n"
                        + "      \"nice\": true,\n"
                        + "      \"range\": \"height\"\n"
                        + "    }\n"
                        + "  ],\n"
                        + "\n"
                        + "  \"axes\": [\n"
                        + "    { \"orient\": \"bottom\", \"scale\": \"xscale\" },\n"
                        + "    { \"orient\": \"left\", \"scale\": \"yscale\" }\n"
                        + "  ],\n"
                        + "\n"
                        + "  \"marks\": [\n"
                        + "    {\n"
                        + "      \"type\": \"rect\",\n"
                        + "      \"from\": {\"data\":\"table\"},\n"
                        + "      \"encode\": {\n"
                        + "        \"enter\": {\n"
                        + "          \"x\": {\"scale\": \"xscale\", \"field\": \"category\"},\n"
                        + "          \"width\": {\"scale\": \"xscale\", \"band\": 1},\n"
                        + "          \"y\": {\"scale\": \"yscale\", \"field\": \"amount\"},\n"
                        + "          \"y2\": {\"scale\": \"yscale\", \"value\": 0}\n"
                        + "        },\n"
                        + "        \"update\": {\n"
                        + "          \"fill\": {\"value\": \"steelblue\"}\n"
                        + "        },\n"
                        + "        \"hover\": {\n"
                        + "          \"fill\": {\"value\": \"red\"}\n"
                        + "        }\n"
                        + "      }\n"
                        + "    },\n"
                        + "    {\n"
                        + "      \"type\": \"text\",\n"
                        + "      \"encode\": {\n"
                        + "        \"enter\": {\n"
                        + "          \"align\": {\"value\": \"center\"},\n"
                        + "          \"baseline\": {\"value\": \"bottom\"},\n"
                        + "          \"fill\": {\"value\": \"#333\"}\n"
                        + "        },\n"
                        + "        \"update\": {\n"
                        + "          \"x\": {\"scale\": \"xscale\", \"signal\": \"tooltip.category\", \"band\": 0.5},\n"
                        + "          \"y\": {\"scale\": \"yscale\", \"signal\": \"tooltip.amount\", \"offset\": -2},\n"
                        + "          \"text\": {\"signal\": \"tooltip.amount\"},\n"
                        + "          \"fillOpacity\": [\n"
                        + "            {\"test\": \"datum === tooltip\", \"value\": 0},\n"
                        + "            {\"value\": 1}\n"
                        + "          ]\n"
                        + "        }\n"
                        + "      }\n"
                        + "    }\n"
                        + "  ]\n"
                        + "}"));
    }