Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 1.26 KB

saiku_embed_framework.rst

File metadata and controls

41 lines (35 loc) · 1.26 KB

Saiku Embed Framework

Initialize The Client

var myClient = new SaikuClient({
            server: "/saiku",
            path: "/rest/saiku/embed",
            user: "admin",
            password: "admin"
    });

Execute A Query

myClient.execute({
                  file: "/homes/home:admin/yardsyoy2.saiku",
                  htmlObject: "#saiku",
                  render: "chart",
                  mode: "line",
                  chartDefinition: {
                       width: 560,
                       colors: colors,
                       extensionPoints: {
                          legend: true,
                          legendShape: 'circle',
                          legendSize: {width: '100%'},
                          legendLabel_textStyle: "#990000",
                          legendFont: 'normal 11px "Open Sans"'
                        }
                   },
                   zoom: true,
                   params: {
                       teamname: rfiSchooldropdown.str
                   }
                  });